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



I have to execute 12000 CL Commands one by one.. So, I have created a file called COMMAND. This fi..

Answer / 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

I have to execute 12000 CL Commands one by one.. So, I have created a file called COMMAND. This fi..

Answer / 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

More IBM AS400 AllOther Interview Questions

How to create a user defined (general) data area?

1 Answers  


how do we know batch job aborted after we submitting it

1 Answers  


what is term cua , saa?

1 Answers   IBM,


What is diff between EVAL & MOVE?

0 Answers  


Hi All, Can any one give me a suggestion for below prob One job is in MSGW due to decimal dara error and I find out stmt error and Value in DMUP. but my file has millions of records.So how can i find out on which record the error was occured....?

3 Answers  


How can we read file using curser? how to define a curser?

0 Answers  


how can see logical file based on which physical file and vice versa

1 Answers   IBM,


How a field is renamed in rpg IV?..give answer with example?

3 Answers   CTS,


How to create files dynamically without DDS?

1 Answers  


how do you specify page overflow indicator for printer files in rpg?

1 Answers   IBM,


when this error ocuurs in openqry file 'OPNID(BANKPF) for file BANKPF already exists.'?

2 Answers   ITC Infotech,


what does the ovrdbf command do?

0 Answers   IBM,


Categories