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
in conjunction with which statements can orxx and andxx conditions be used ?
What Is The Error If We Don't Get Login Screen?
Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..
WHAT IS AS/400 SYNORIO?
what is message file?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is the disadvantage of using global variable?
What is file information data structure(infds) in as400?
How can we read file using curser? how to define a curser?
what does dfu program you to do on a record?
how can I predict the performance of my cgis?
What is program status data structure(psds) in as400?
What is the Difference between command attention key and command function key ?
name few ibm supplied libraries?