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 elastic and non elastic subrile?
What is the purpose of 'CPYTOIMPF' command?
6 Answers Aditya Birla, Redington,
Q1. How to use signature in service program and ILE.? Q2.what is use of signature and binder language and what is the relation between them?
what is the command used to invoke rlu ?
What is a Member?
What is acronym of RPG?
What is the purpose of CHGPF (Change physical file) command?
How to create an Access path in Synon/2E ?
how many printer files maximum can be used in single rpg program?
Job is running in production 24/7 how do u debug that running job ?
What is RETURN CURSER LOCATION in subfile?
how do handle file exception/error?