Retrieve Submitter Job Attr. (RTVSBMJOBA)
Where allowed to run:
- Batch program (*BPGM)
- Interactive program (*IPGM)
- Batch ILE CL module (*BMOD)
- Interactive ILE CL module (*IMOD)
Threadsafe: No
|
Parameters
Examples
Error messages |
Retrieve Submitter Job Attributes (RTVSBMJOBA) Help
Retrieve Submitter Job Attributes - Help
The RTVSBMJOBA command allows you to retrieve information about the job that submitted the current job. Typically this is used in batch jobs only to retrieve the submitter's job and date information.
Use this command to retrieve the date your job was submitted to the job queue. This is most often used when jobs are submitted near midnight but do not start running until after midnight and the job's date will be different from the date on which it was submitted.
Keyword |
Description |
Choices |
Notes |
RTNSBMJOB |
Submitter Job's Name (10) |
Character value |
Optional, Positional 1 |
RTNSBMUSER |
Submitter Job's User (10) |
Character value |
Optional, Positional 2 |
RTNSBMNBR |
Submitter Job's Nbr (6) |
Character value |
Optional, Positional 3 |
RTNMSGQ |
Submitter Job's MsgQ (10) |
Character value |
Optional, Positional 4 |
RTNMSGQLIB |
Submitter Job's MsgQLib (10) |
Character value |
Optional, Positional 5 |
RTNJOBQ |
Submitted to JobQ Name (10) |
Character value |
Optional, Positional 6 |
RTNJOBQLIB |
Submitted to JobQ Lib (10) |
Character value |
Optional, Positional 7 |
RTNSBMJDT |
Submitter Job's Date (8) |
Character value |
Optional, Positional 8 |
RTNSBMDATE |
Submitted-on Date (8) |
Character value |
Optional, Positional 9 |
RTNJOBDATE |
This Job's Job Date (8) |
Character value |
Optional, Positional 10 |
Submitter Job's Name (RTNSBMJOB) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the job name of the job that submitted the current job.
Submitter Job's User (RTNSBMUSER) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the user profile name of the user associated with the job that submitted the current job.
Submitter Job's Number (RTNSBMNBR) parameter
Specify a CL return variable TYPE(*CHAR) LEN(6) to receive the job number of the job that submitted the current job.
Submitter Job's Message Queue (RTNMSGQ) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the name of the message queue for the submitter job.
Submitter Job's Message Queue Library (RTNMSGQLIB) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the name of the message queue library for the submitter job.
Submitted To Job Queue Name (RTNJOBQ) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the name of the job queue to which the current job was submitted.
Submitted To Job Queue Library (RTNJOBQLIB) parameter
Specify a CL return variable TYPE(*CHAR) LEN(10) to receive the name of the job queue library to which the current job was submitted.
Submitter Job's Job Date (RTNSBMJDT) parameter
Specify a CL return variable TYPE(*CHAR) LEN(8) to receive the job date of the submitter job. Return format is: YYYYMMDD character.
Submitted-On Date (RTNSBMDATE) parameter
Specify a CL return variable TYPE(*CHAR) LEN(8) to receive the submitted-on date. Return format is: YYYYMMDD character. This is the date on which the current job was submitted to the jobq.
Curret Job's Job Date (RTNJOBDATE) parameter
Specify a CL return variable TYPE(*CHAR) LEN(8) to receive the job date of the current job. Return format is: YYYYMMDD character.