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

In CL programming,it should not be a problem to execute any command.
We don't have to use QCMDEXC in CL.If there are for eg 100 RTV commands then firstly the variables to retrieve should be declared in the program .But if the command are only CALL commands then Using QCMDEXC will solve the purpose.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is externally described file ?

940


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?

3067


why is as/400 called object oriented machine?

955


what are dds required for subfile?

587


Difference Between Interactive & Batch Job?

792






which are control break logic indicators?

639


difference between sflrcdnbr and sflnxtchg?

705


what are the three types of keywords associated with printer file ?

1013


What is the default access path of a file?

589


what is the difference between udate and the system date?

1163


what are the basic features of seu?

614


what are the three line types in rlu ?

1485


when should I use method get, and when should I use method post in my cgis?

614


difference between view and index ?

714


A join logical file has how many record formats?

603