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 / sathya

This is can be acheived by using an API QUSRJOBI. it takes
five mandatory parameters. The status of the job will be
returned to variable &JOBENDR.

CALL PGM(QUSRJOBI) PARM(&JOBINFO &JOBINFL +
&JOBFMT1 &QJOBNAME &QINTJOB)
CHGVAR VAR(&JOBENDR) VALUE(%SST(&JOBINFO 348 1))
==

If the value returned is ''-->then its still running
If the value returned is '0'-->it has completed sucessfully
and then we can submit the next job
If the value returned is '1'-->It has ended in error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Many Specs Are There In Rpg & Which Are They?

689


which indicator is used for read?

634


which type of object is used in db2/400?

652


what is arrival sequence?

1119


when do you use f-spec. Continuation line ?

983






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

1145


define what a data queue is along with a brief example of what it may be used for?

1081


How to avoid using indicators in ile ?

777


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

1262


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

602


what is the maximum number of record formats in dspf?

1000


what is full form for dds?

747


what are the important factors in error message subfile ?

568


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

1058


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

598