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
what is xfoot opcode ?
what is elastic and non elastic subrile?
can a join logical file be updated?
define the rcvf command?
What is the default access path of a file?
when would you prefer logical file than opnqryf?
how to run other job when one job is active?
a multiple format logical file is also known as?
how does union file maintains record formats?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
which are the member types which seu supports?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is the use of jdftval in join logical file?
under given circumstances, my cgi should link to another site. How to implement this?