JB – Ad-hoc in the current plan

The JB Batch Loader statements do not map to a record within HCL Workload Automation for Z, instead this is pseudo batch loader generated as output from the LISTJOB command.

The LISTJOB command extracts application and job details from the database for a single job, but can be made to output this detail in the form of a JBSTART command. So where the ADDJOB command will extract job details and then submit the job directly to the plan with the extracted attributes, by using LISTJOB to create the JBSTART command this allows you to manipulate the extracted attributes before submitting the job to the current plan.

For example, issue the following LISTJOB command:
LISTJOB JOB005 ADID(ALTIF) OUTPUT(OUTDATA) STYLE(LOADER) DISPLAY(N) 
                  DETAIL(SUCC) 
to create the following JB command:
JBSTART ADID(ALTIF) ADVALFROM(141202) DESCR('ALTIF test') OWNER(TWS)  
JBOP WSID(CPU1) OPNO(005) JOBN(JOB005) DURATION(1)                    
JBPRE-INT WSLCCMD1 PREADID(ALTIF) PREWSID(CMD1) PREOPNO(001)          
JBSUC-INT JOB010 SUCADID(ALTIF) SUCWSID(CPU1) SUCOPNO(010)      

The JB batch loader statements are similar to the equivalent AD statements, with the difference that the AD prefix is replaced with JB. For a complete description of the AD syntax, see AD – Application definition record.