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

I think after SBMJOB of the first PGM you need to retrieve
jobd of it. When the Job is completed then SBMJOB next job.
If you submit jobs together they all are processing
simultaneously which is violation of requirements.

Your second question is not clear to me. But if it is in
continuation of the first question then yes, it is possible
to have more than two programs executed in batch mode and
you will have to continue doing RTVJOBD for submitted job
prior to submitting next job. The loop can be like-

SBMJOB (JOB1)

TAG1 : RTVJOBD (JOB1)

I am not sure which parameter is to be used but there is
one parameter that pertains to job status and If status is
complete GOTO TAG2 else got to TAG1 will give you the loop
required to implement our requirement.

TAG2 : SBMJOB (JOB2).....

you can add one as many jobs as required this way.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we change the uppercase to Lowercase in RPG?

937


What is the use of jdftval in as400?

926


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

575


how you get the relative record in a subfile in which cursor is located?

628


Apart from opening of a file do we have any other use of USROPN?

964






To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

800


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2195


what is overlay?

691


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

690


what is a physical file?

1019


Difference Between Skip Before & Space Before?

678


how to define to define a hidden filed in dspf ?

791


what is full form for dds?

755


how can you specify no duplicate key?

718


how can you detect and handle a record lock situation?

1230