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

maximum number of subfiles that can defined in a rpg program for one display file is?

998


what do we can do with the embedded sql statements?

560


what is the use of unique keyword and what level it is defined?

887


what does vldcmdkey means?

790


when are the referential constraints executed?

603






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

1179


What Is The Difference Between Goto & Exsr?

1146


define a shared access path?

952


distinguish between terminating a program through seton lr and return?

538


which single rpg opcode performs both setll and reade?

1068


when are the unique constraints executed?

650


what is a program described file in rpg?

1017


what are the different methods to access seu?

600


What is dynslt?

761


how many printer files maximum can be used in single rpg program?

647