Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

JOB-NAME( ) Request job name

&pagelevel(3)&pagelevel

Domain: Job information

The JOB-NAME( ) function supplies the job name of the current task, i.e. the name specified in the SET-LOGON-PARAMETERS command.

Format

JOB-NAME( )


Result type

STRING (<string 1..8>)

Input parameters

None

Result

Job name as specified in the SET-LOGON-PARAMETERS command.

Error message

SDP0435  DESIRED INFORMATION NOT AVAILABLE

Example

/SET-LOGON-PARAMETERS USER1,ACC01,'PASSWORD',JOB-NAME=BERTA
/ ... 
/B = JOB-NAME( )
/SHOW-VARIABLE B
B = BERTA 

For comparison:

/show-job-status
%TSN:     29XX       TYPE:    3 DIALOG   NOW:     2007-04-26.110747
%JOBNAME: BERTA      PRI:     0 210
%USERID:  USER1      JCLASS:  JCDSTD     LOGON:   2007-04-26.1053
%ACCNB:   ACC01      CPU-MAX:   9999     CPU-USED:000000.6447
%STATION: $$$06580   PROC:    FIREBALL
%TID:     000101AB   UNP/Q#:    00/000
%CMD:     SHOW-JOB-STATUS
%MONJV:   *NONE 

The JOBNAME field displays the name BERTA that was specified in the SET-LOGON-PARAMETERS command.