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

Yes, You can any number of program execute in batch it will
process one by one. (You see WRKACTJOB then press F5 in top
under Qbatch )

PGM PROGRAM1
SBMJOB CMD(CALL JOB1)
SBMJOB CMD(CALL JOB2)
SBMJOB CMD(CALL JOB3)
SBMJOB CMD(CALL JOB4)
ENDPGM

SBMJOB PROGRAM1 = This all jobs send to Qbatch to execute
one by one (This is on the Que.

Important:If you program screen(SDA) for input do not use
SBMJOB.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What Is The Error If We Don't Get Login Screen?

673


what is the maximum number of parameters allowed in rpg?

1030


what are different types of substems?

1336


writing an sql statement from selecting records from two files using single statement and nested select statement.

636


1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

3061






how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

928


What is dynslt?

779


What is the use of jdftval in as400?

907


what is the sequence when using cursor?

603


what is a spool file?

665


can a single screen format occupy a screen area above and below a subfile format ?

1017


what is the difference between normal upddta to pf and updating using dfu program?

750


what is the difference between *like and *namvar ?

1550


Can level check error occur if we do chgpf?

769


which single rpg opcode performs both setll and reade?

1089