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 do handle file exception/error?

1 Answers   IBM,


How do you use DEBUG utility?

1 Answers  


how to get no of records in file in rpg with out cl cmd

2 Answers   iGate,


What is the use of jdftval in as400?

1 Answers  


What is keyword PFILE specifies ?

1 Answers  


What Does 'sr' In Columns 7-8 Of C Specs Mean?

2 Answers   IBM,


which of the following operations does not zero the field flda defined as 4,0?

1 Answers   IBM,


what is the difference between normal upddta to pf and updating using dfu program?

1 Answers   IBM,


What is a Member?

1 Answers  


what is arrival sequence?

2 Answers   IBM,


Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.

2 Answers  


What is the purpose of CHGPF (Change physical file) command?

1 Answers  


Categories