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
give three main purposes of file specification ?
how do you specify the number of records to roll in a subfile ?
What is the maximum number of subfiles that can be specified in a display file?
which are the string manipulation opcodes?
How can we change the uppercase to Lowercase in RPG?
why do we use readc? What is sflnxtchg?
during input operation which indicator position is seton if there is a record lock?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
which of the following operations does not zero the field flda defined as 4,0?
What is the as400 called now?
what is the function of cpyf command?
what does opcode post do ?
how to validate input values in display file ?
difference between sflrcdnbr and sflnxtchg?
how will you search an array?