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
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is a non-join logical file?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
define the purpose of the %sst function?
when would you use or not use this approach?
What is access path in as400?
what is the version of os/400 that we have?
what does check opcode is used?
how many files can be defined in f specs?
what is the maximum number of fields under a record format of physical file?
how can I control the way a remote browser uses its cache?
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
WHAT IS FERERENTIAL INTRIGRITY ?
define the purpose of the *bcat function?
Can level check error occur if we do chgpf?