HPlogo MPE/iX Intrinsics Reference Manual > Chapter 8 Command Definitions (HPMERGEEND-LOGSTATUS)

JOBINFO

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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:

ValueMeaning
1jsnum is a session
2jsnum 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.

ValueMeaning
0Successful call. All itemerrors equal zero.
1Partially successful call. One or more itemerror(s) returned with nonzero values.
2Unsuccessful call. All itemerrors returned with nonzero values.
3Unsuccessful call. Syntax error in calling sequence.
4Unsuccessful call. Unable to retrieve jsnum.
5Process terminated. The process terminated during the start of retrieval.

itemnum

16-bit signed integer by value (optional)

Specifies which item value is to be returned. Refer to Table 4-20 for a complete list of valid item numbers and what they return to the caller.

item

type varies (optional)

A reference parameter (whose data type corresponds to the data type for the desired information) to which the desired information is returned.

These are standard data types and are defined in Table 2-1. All itemnum and item parameters are output parameters. The only exception is itemnum=1, when all the following conditions are met:

  • The caller passes itemnum=1 in the first item triple.

  • The item parameter contains a character string of the form [jsname,] username.acctname.

  • The jsnum parameter is set to 0, and the jsind parameter is set to 1 or 2.

If all these conditions are met, JOBINFO returns information about the specified job/session in all other items and returns that job/session number in jsnum. The size of the first item is determined by the way it is used.

itemerror

16-bit signed integer by reference (optional)

Returns the success or failure of the retrieval of each item. The returned values are:

ValueMeaning
0Successful
1Invalid itemnum
2Information requested not valid for specified jsnum
3Insufficient capability
4Information not available


JOBINFO Itemnum/Item Values


NOTE: Unless otherwise indicated, all mnemonics are as defined in Table 2-1.

Operation Notes


System manager (SM) or account manager (AM) capability is required to retrieve information about jobs and sessions not logged under your user and account. AM capability restricts access to account session and job information; SM capability allows access to all session and job information. This intrinsic does not alter the condition code.

Related Information


IntrinsicsGETINFO, GETPRIORITY, GETPROCINFO, HPMYFILE, HPMYPROGRAM, PROCINFO, PROCTIME, WHO
CommandsSHOWJOB, SHOWME, SHOWOUT, SHOWIN
Manuals MPE/iX Commands Reference Manual




IOWAIT


KILL