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

name few ibm supplied libraries?

1235


Difference Between Source Physical File & Physical File?

647


which indicator is used for read?

634


can you specify a display file to be used in the following modes input,output, or combined modes ?

950


explain the difference between defining subfile and message-subfile?

1118






In Which Specs Arrays, Tables & Constants Are Defined?

707


Difference Between Call & Sbmjob?

780


what are all the contents of subfile?

998


What is %CHECK?

849


in conjunction with which statements can orxx and andxx conditions be used ?

1145


what are the two record formats a subfile contain ?

1128


how can you detect and handle a record lock situation?

1222


what is logical file?

608


in which specification the report layout can be defined?

984


what is sflinz and sflrna?

1017