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


Please Help Members By Posting Answers For Below Questions

where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1126


how can you specify no duplicate key?

714


is there any way to dynamically merge other html scripts into a given html?

607


how can we run a batch job?

741


distinguish between terminating a program through seton lr and return?

571






what is the sequence when using cursor?

611


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

1262


which cl command can be used at program execution to redirect the file named in an rpg program?

719


how to write *pssr ?

644


How can we arrange duplicate records in a file?

610


what does opcode post do ?

1107


how many specifications are there in rpg/400? What are they?

1107


Using %check we are checking monika in mona what is output? What is %SCAN?

996


how to validate input values in display file ?

675


what is the use of sflend keyword?

992