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..
Answers were Sorted based on User's Feedback
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 |
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 |
How to create a user defined (general) data area?
how do we know batch job aborted after we submitting it
what is term cua , saa?
What is diff between EVAL & MOVE?
Hi All, Can any one give me a suggestion for below prob One job is in MSGW due to decimal dara error and I find out stmt error and Value in DMUP. but my file has millions of records.So how can i find out on which record the error was occured....?
How can we read file using curser? how to define a curser?
how can see logical file based on which physical file and vice versa
How a field is renamed in rpg IV?..give answer with example?
How to create files dynamically without DDS?
how do you specify page overflow indicator for printer files in rpg?
when this error ocuurs in openqry file 'OPNID(BANKPF) for file BANKPF already exists.'?
what does the ovrdbf command do?