Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

1143


what is a non-join logical file?

1845


how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

1632


define the purpose of the %sst function?

1669


when would you use or not use this approach?

1562


What is access path in as400?

1360


what is the version of os/400 that we have?

1649


what does check opcode is used?

1799


how many files can be defined in f specs?

2383


what is the maximum number of fields under a record format of physical file?

1863


how can I control the way a remote browser uses its cache?

1221


Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

1132


WHAT IS FERERENTIAL INTRIGRITY ?

1644


define the purpose of the *bcat function?

1564


Can level check error occur if we do chgpf?

1264