Qusrjobi Cl Example

Qusrjobi Cl Example



11/11/2019  · This is an example of a CL program that calls the QUSRJOBI API to retrieve the job number. Example PGM DCL VAR(&RCVVAR) TYPE(*CHAR) LEN(129) DCL VAR(&RCVLEN) TYPE(*CHAR) LEN(4) DCL VAR(&FMTNAM) TYPE(*CHAR) LEN(8) VALUE(‘JOBI0600’) DCL VAR(&JOBNAM) TYPE(*CHAR) LEN(26) VALUE(‘*’) DCL VAR(&INTJOB) TYPE(*CHAR) LEN(16).

The Retrieve Job Information ( QUSRJOBI ) API retrieves specific information about a job. Authorities and Locks. … For example , the JOBI0200 format only returns information for active jobs. … See the CL programming topic for the total number of libraries that can be returned. Library Array Entry.

QUSRJOBI. You can determine what subsystem a job is running in with the RetrieveJob Information API. The following sample CL determines, for theactive job, what subsystem it is active in and sends ‘OK’ if QCTL and’NOT OK’ if not QCTL. The API documentation can be found in the Work Management APIs chapterof the System API Reference.

The Retrieve Job Information ( QUSRJOBI ) API as400 retrieves specific information about a as400 job Heres an example from the Big Dummy’s Guide to the As400 that using QUSRJOBI API to determine if the current job is interactive or batch, 6/16/2009  · Re: QUSRJOBI example – retrieve library list, (continued) Re: QUSRJOBI example – retrieve library list, sjl; RE: QUSRJOBI example – retrieve library list, Graap, Kenneth; Re: QUSRJOBI example – retrieve library list, Charles Wilt; Re: QUSRJOBI example – retrieve library list, Scott Klement; Re: QUSRJOBI example – retrieve library list, Charles Wilt, Use the QUSLJOB API to determine jobs running in a subsystem by Scott Klement. Posted to the RPG-L Mailing List by Scott Klement. Here’s a sample that uses the QUSLJOB API. The QGYOLJOB API might also work, but I don’t have a sample of that that I can send you.

6/16/2009  · Re: QUSRJOBI example – retrieve library list — You could write a CL module and bind it in to a *SRVPGM. I don’t think ‘modern’ doesn’t need to mean ‘avoid CL like the plague’. You’re unlikely to get RPG-specific documentation specifically for each API. Frankly though, it’s not _that_ hard, (except may…

Example II Assume in the following CL procedure, an interactive job submits a program including the CL procedure to batch. A Retrieve Job Attribute (RTVJOBA) command retrieves the name of the message queue to which the job’s completion message is sent, and uses that message queue to communicate with the user who submitted the job.

6/21/2019  · The following example returns the job attributes for the current job (the one running the SQL statement). Example select * from table( iQuery.RTVJOBA() ) thisJob’; The Following is a table that identifies the Job Type and SubType columns returned by this UDTF.

Advertiser