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

explain the purpose of keep and assume keywords?

1059


how to declare a constant variable in the freeformat?

957


how many types of display are available on as/400 for user interaction?

627


how to toggle between single line and multi - line display of a particular record in a subfile?

1076


what is the maximum number of files allowed in rpg?

936






what are the different types of data areas?

977


What is %CHECK?

841


how many maximum spaces could be given in o specs?

631


what is a program described file in rpg?

1044


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

654


how can I control from my cgis the cache of a remote browser?

669


what is the purpose of ovrdta and ovrata keywords ?

882


what is the function of crtdupobj command?

1144


what is the purpose of data structure?

1003


Explain The Keywords Edtcde & Edtwrd?

831