Code Monkey home page Code Monkey logo

codeforibmiserver's People

Contributors

davecharron avatar theprez avatar worksofliam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

codeforibmiserver's Issues

Server component is not installed by Code4i

Hi, I tried several times to install Code4i but the server component for DB2for i gets never installed.
I downloaded the jar file and copied it in my .vscode folder.
By connecting to my IBM i box VS code I get the error
"Something went really wrong trying to fetch your come directory"
Source: DB2 for IBM i

What am I doing wrong?
Thanks bye

DoVE: ENDDBMON never happens if the prepareStatement call fails

PreparedStatement tgt = jdbcConn.prepareStatement(sql);

With the current code flow, if the prepare of the statement to VE fails for any reason (ex: query of a non-existent file), we drop into the catch block, skipping over the call to ENDDBMON.
As a result, any subsequent VE actions on the job fail at the point that the STRDBMON is called, because the job is still being monitored from the failed attempt.
The fail out path needs to ensure that the job monitoring is ended.

Binding parameters

Need binding parameters for procedure calls.

Also input/output support would be nice but not required

DoVE: Change the procedure call

I'm wondering if this should instead be calling QSYS.QQQDBVE.
I think it is possible for QIWS.QQQDBVE2 to not exist on the system.
Way back in the day System i Navigator was responsible for creating it.
I think at some point that might have gotten rolled into a system install or IPL path, but I am not certain.
Under the covers, both procedures call the same program.

Parameterize DOVE string

Right now there is a hardcoded string in the VE API call, but we're likely going to need this parameterized in the future so we can pass in optional values via the request object.

typedef _Packed struct         /* Input structure              */
{
	char   IN_DBMONTBL[10];     /* DBMON table name             */
	char   IN_DBMONLIB[10];     /* DBMON lib   name             */
	char   IN_DATFMT[3];        /* Date Format                  */
	char   IN_DATSEP[1];        /* Date Separator               */
	char   IN_TIMFMT[3];        /* Time Format                  */
	char   IN_TIMSEP[1];        /* Time Separator               */
	char   IN_DECPNT[1];        /* Decimal Point                */
	char   IN_LNGID[3];         /* Language ID                  */
	char   IN_DIAGRAM[1];       /* Type of VE diagram           */
	char   IN_DATAATTR[1];      /* Data attribute option        */
	char   IN_OPTION3[1];       /* Explain current-of-job       */
	char   IN_CURRJOB[26];      /* Job for current-of-job       */
	char   IN_ExpOnly[1];       /* Explain Only                 */
	char   IN_DblHostVar[1];    /* DblByte HostVar values       */
	char   IN_ClsCursor[1];     /* QQQDBVE to close cursor      */
	char   IN_RESRV[8];         /* Open for use                 */
} x;               /* Structure passed to API on input, 72 bytes */

callStmt.setString(2, "DOVEOUT QTEMP ISO-ISO..ENUBM0 09");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.