MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 8 479
Command Definitions (HPMERGEEND-LOGSTATUS)
JOBINFO
JOBINFO
NM and CM callable.
Returns information about any current job or session under your user name and account.
If you have sufficient capabilities, it returns information about jobs or sessions running
under other users and accounts.
Syntax
I16V I32 U16A
JOBINFO(
jsind,jsnum,jsstatus
I16V * I16
[,
itemnum,item,itemerror
] [...]);
NOTE You can specify up to five
itemnum
/
item
/
itemerror
triples.
Parameters
jsind
16-bit signed integer by value (required)
Indicates whether
jsnum
denotes a session or job:
Value Meaning
1 jsnum is a session
2 jsnum is a job
jsnum
32-bit signed integer by reference (required)
Passes the job/session number for which information is requested.
Job/session numbers can be displayed by the SHOWME and SHOWJOB
commands. If this value is zero, JOBINFO returns information about your
logon job/session (unless the first
itemnum
has a value of 1; see below).
When you pass a 0 for
jsnum
, JOBINFO returns the actual job/session
number in
jsnum
.
jsstatus
16-bit unsigned integer array (required)
Returns indicator of the success or failure of the call in a two-element
array. The first element contains the error indicator. The second element
should be ignored.
Value Meaning
0 Successful call. All
itemerrors
equal zero.
1 Partially successful call. One or more
itemerror(s)
returned with nonzero values.
2 Unsuccessful call. All
itemerrors
returned with nonzero
values.