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 is SFLPAG
what is a keyed physical file?
name few ibm supplied libraries?
what is rpg fixed logic cycle?
how can you check for a records existence without causing and i/o (chain/read)?
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 maximum number of fields under a record format of physical file?
What is the purpose of 'CPYTOIMPF' command?
6 Answers Aditya Birla, Redington,
How many record formats can you have in a Physical file and in a Logical file ?
when do you use f-spec. Continuation line ?
define subsystem?
how many files can be defined in f specs?