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

give three main purposes of file specification ?

973


how do you specify the number of records to roll in a subfile ?

1214


What is the maximum number of subfiles that can be specified in a display file?

1135


which are the string manipulation opcodes?

611


How can we change the uppercase to Lowercase in RPG?

920






why do we use readc? What is sflnxtchg?

657


during input operation which indicator position is seton if there is a record lock?

919


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3139


which of the following operations does not zero the field flda defined as 4,0?

686


What is the as400 called now?

531


what is the function of cpyf command?

989


what does opcode post do ?

1066


how to validate input values in display file ?

655


difference between sflrcdnbr and sflnxtchg?

692


how will you search an array?

642