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

what is the purpose of the indara keyword?

1121


how can you detect overflow for a print program that prints multiple lines per cycle?

957


what is *inzsr used for?

1465


what are the three line types in rlu ?

1477


What is file access opcodes?

754






what is a logical file?

1035


what is term cua , saa?

950


what are various techniques to pass parameters from one program to another?

1036


what are the different commands used in rlu ?

1452


the maximum number of subfiles that can be active for a single file is ____ .

1176


how do you specify page overflow indicator for printer files in rpg?

1458


what are the different methods to access seu?

624


how can you detect and handle a record lock situation?

1210


How can we change the uppercase to Lowercase in RPG?

926


What is the difference between non-join logical files and join logical files?

609