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

what is elastic and non elastic subrile?

0 Answers   IBM,


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?

2 Answers   CTS,


what is the command used to invoke rlu ?

1 Answers   IBM,


What is a Member?

1 Answers  


What is acronym of RPG?

1 Answers  


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

1 Answers  


How to create an Access path in Synon/2E ?

1 Answers  


how many printer files maximum can be used in single rpg program?

0 Answers   IBM,


Job is running in production 24/7 how do u debug that running job ?

1 Answers   Wipro,


What is RETURN CURSER LOCATION in subfile?

0 Answers  


how do handle file exception/error?

0 Answers   IBM,


Categories