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 the sequence when using cursor?
Can level check error occur if we do chgpf?
Difference Between Call & Sbmjob?
what are the different types of data areas?
is it possible to create a physical file without dds?
which of the cl command can be used to determine which logical files are dependent on a specific file?
how many specifications are there in rpg/400? What are they?
how do handle file exception/error?
how can you execute a command from within an rpg program without calling a clp program?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is a logical file?
what is the purpose of ovrdta and ovrata keywords ?
how many files can be defined in f specs?
What is the difference between crtdupobj and copyf?
What is binder language ?