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..

Answer Posted / gagan44

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it possible to create a physical file without dds?

1564


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1327


which indicator is used for read?

867


which are the figurative constants used in rpg?

1082


can you specify a display file to be used in the following modes input,output, or combined modes ?

1197


what is the necessary keyword for non-join logical file?

1470


How to reverse the string in rpg

1463


name few ibm supplied libraries?

1605


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1411


what does defn do?

804


How can we change the uppercase to Lowercase in RPG?

1109


how can a cgi check whether an ifs object is available?

831


Explain The Keywords Edtcde & Edtwrd?

1057


how you will know whether you are in sfldrop or sflfold mode?

827


How to reverse a string using RPG?

1109