I have to execute 12000 CL Commands one by one..
So, I have created a file called COMMAND.
This file has only 1 field called STRING.
This file had 12000 records, and all these records are CL Commands (ex: CALL PGM(PGM1)), etc)
I have written a CL which will read all the record and do sbmjob..
But it is not working...
Plz help me to exexute all these 12000 commands..
Answer Posted / alok.yee001
Use QCMDEXC command to execute the string from file.
Pass the string from file to QCMDEXC command.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
how can you specify no duplicate key?
is there any way to dynamically merge other html scripts into a given html?
how can we run a batch job?
distinguish between terminating a program through seton lr and return?
what is the sequence when using cursor?
how do you specify the number of records to roll in a subfile ?
which cl command can be used at program execution to redirect the file named in an rpg program?
how to write *pssr ?
How can we arrange duplicate records in a file?
what does opcode post do ?
how many specifications are there in rpg/400? What are they?
Using %check we are checking monika in mona what is output? What is %SCAN?
how to validate input values in display file ?
what is the use of sflend keyword?