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 / alok.yee001

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the disadvantage of using global variable?

876


what is overlay?

891


what are the limitations of cl (compare to rpg) ?

1899


In RPG How to read a records from a file without using read opcodes?

1268


Using %check we are checking monika in mona what is output? What is %SCAN?

1190


define the purpose of the %sst function?

1266


how do you use exceptional write in c specs?

1502


a multiple format logical file is also known as?

761


define subsystem?

1286


What is the difference between physical file and logical file?

815


how to develop some simple graphs (bar charts) using just html?

838


What is the maximum number of subfiles that can be specified in a display file?

1547


when would you use or not use this approach?

1192


What is the difference between non-join logical files and join logical files?

821


define what a data queue is along with a brief example of what it may be used for?

1397