Difference between revisions of "Retrieve Job Information (QUSRJOBI)"

From MidrangeWiki
Jump to: navigation, search
(References)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qusrjobi.htm Retrieve Job Information (QUSRJOBI) API] (right-click to open link in a new tab).
 
For more information on this API, visit [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qusrjobi.htm Retrieve Job Information (QUSRJOBI) API] (right-click to open link in a new tab).
 +
 +
By [[User:DaveLClarkI|Dave Clark]]
  
 
== Prototype for the QUSRJOBI API ==
 
== Prototype for the QUSRJOBI API ==
Line 26: Line 28:
 
end-pr;
 
end-pr;
 
</pre>
 
</pre>
 +
 +
== Example ==
 +
See the [[Job In Msg Wait]] service procedure.
  
 
== References ==
 
== References ==
 
* [[API Error Code Structure (ApiErrC)]]
 
* [[API Error Code Structure (ApiErrC)]]

Latest revision as of 17:21, 17 December 2018

Summary

The following is an RPG/LE fully free-form prototype for the IBM QUSRJOBI API to retrieve information about a job.

For more information on this API, visit Retrieve Job Information (QUSRJOBI) API (right-click to open link in a new tab).

By Dave Clark

Prototype for the QUSRJOBI API

//******************************************************************************
// IBM API to Retrieve a Job's Information
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/qusrjobi.htm
//******************************************************************************
/include qsysinc/qrpglesrc,qusrjobi         // QUSRJOBI API data structures
dcl-pr IBMAPI_RtvJobInfo          extpgm('QUSRJOBI');
  JobInfo               likeds(QUSI020000)  options(*varsize);
  JobInfL               int(10)   const;
  JobIFmt               char(8)   const;
  JobName               char(26)  const;
  JobINam               char(16)  const;
// optional parm group 1
  JobErrC               likeds(ApiErrC)     options(*nopass:*varsize);
// optional parm group 2
  JobRset               char(1)   const     options(*nopass);
end-pr;

Example

See the Job In Msg Wait service procedure.

References