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 |
can you have multiple key lists for a single file ?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
what is match field indicator?
What is difference between rename and prefix?
when should I use method get, and when should I use method post in my cgis?
can a indexed file be accessed in arrival sequence in rpg program?
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
What is the difference between externally described file and program described file?
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
why do we use readc? What is sflnxtchg?
What is primary file? How many primary file can be declared in a RPG program?