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


Please Help Members By Posting Answers For Below Questions

what is xfoot opcode ?

1073


what is elastic and non elastic subrile?

573


can a join logical file be updated?

600


define the rcvf command?

1008


What is the default access path of a file?

597






when would you prefer logical file than opnqryf?

1392


how to run other job when one job is active?

611


a multiple format logical file is also known as?

603


how does union file maintains record formats?

637


is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

602


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?

572


which are the member types which seu supports?

822


Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?

667


what is the use of jdftval in join logical file?

1134


under given circumstances, my cgi should link to another site. How to implement this?

588