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 |
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
how may a cgi control duplicate inputs?
What are the different types of access paths maintained on the file?
what do we can do with the embedded sql statements?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
What are the valid user defined data area types?
What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error
What is SAA?
How do you combine two record formats in RLU ?
What is the symbol used for shifting fields in SDA?
how to validate input values in display file ?
What is the use of L specs in RPG?