Q.How can more than two program be executed in batch mode
through SBMJOB in CL PGM but the condition is that program
must be executed one by one?Please wtite the senario?
2. IS it possibe more then two programs can be executed in
batch mode and HOw it will be executed in CL
program ,please write the senario?
Answer Posted / yogesh
PGM MYCLPGM
/*The CL variable must be a five-position decimal variable
with no decimal positions. */
DCL &STSVAR *DEC 5
SBMJOB CMD(CALL JOB1)
TAGJOB1: RTVJOBA RTNCDE(&STSVAR)
IF COND(&STSVAR *NE 0) THEN(GOTO CMDLBL(TAGJOB1))
SBMJOB CMD(CALL JOB2)
TAGJOB2: RTVJOBA RTNCDE(&STSVAR)
IF COND(&STSVAR *NE 0) THEN(GOTO CMDLBL(TAGJOB2))
ENDPGM
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
explain the purpose of keep and assume keywords?
how to declare a constant variable in the freeformat?
how many types of display are available on as/400 for user interaction?
how to toggle between single line and multi - line display of a particular record in a subfile?
what is the maximum number of files allowed in rpg?
what are the different types of data areas?
What is %CHECK?
how many maximum spaces could be given in o specs?
what is a program described file in rpg?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
how can I control from my cgis the cache of a remote browser?
what is the purpose of ovrdta and ovrata keywords ?
what is the function of crtdupobj command?
what is the purpose of data structure?
Explain The Keywords Edtcde & Edtwrd?