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
define the purpose of the *cat function?
list some of the commonly used commands for debugging?
how to run other job when one job is active?
which are the member types which seu supports?
If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?
name few ibm supplied libraries?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
what is the command used to invoke rlu ?
what is the maximum number of fields under a record format of physical file?
what is the difference between packed decimal and zoned decimal?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
what are the different opcodes available in rpg for database access ?
what is the maximum number of files allowed in rpg?
what are the different types of data areas?