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
what is externally described file ?
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?
why is as/400 called object oriented machine?
what are dds required for subfile?
Difference Between Interactive & Batch Job?
which are control break logic indicators?
difference between sflrcdnbr and sflnxtchg?
what are the three types of keywords associated with printer file ?
What is the default access path of a file?
what is the difference between udate and the system date?
what are the basic features of seu?
what are the three line types in rlu ?
when should I use method get, and when should I use method post in my cgis?
difference between view and index ?
A join logical file has how many record formats?