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
name few ibm supplied libraries?
Difference Between Source Physical File & Physical File?
which indicator is used for read?
can you specify a display file to be used in the following modes input,output, or combined modes ?
explain the difference between defining subfile and message-subfile?
In Which Specs Arrays, Tables & Constants Are Defined?
Difference Between Call & Sbmjob?
what are all the contents of subfile?
What is %CHECK?
in conjunction with which statements can orxx and andxx conditions be used ?
what are the two record formats a subfile contain ?
how can you detect and handle a record lock situation?
what is logical file?
in which specification the report layout can be defined?
what is sflinz and sflrna?