Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

0 Answers  


when do you explicitly open files and close files in an rpg program?

1 Answers   IBM,


When will DUMP and DEBUG opcodes be ignored?

1 Answers  


How do I remove a flag or check no. or name when a user opens too many sessions?

0 Answers  


Q. Soppose one job is running in a batch mode for long time now i want to kill(end)this batch job.How you will achive this?

4 Answers   IBM,


what is the difference between clear and reset opcodes and open and close opcodes?please tell me in real time senario with example please? And What is the use of SFLNXTCHG?Where we can use this?

4 Answers   IBM,


i have one physical file which is having two logical files. logical a have unique keyword and logical b doesnt have a unique keyword. can i give duplicate values while updating through physical file. if no why?

4 Answers   IBM,


How can we sort an array?

1 Answers  


how do you pass parameters in cl?

1 Answers   IBM,


can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com

0 Answers   HCL,


What is the Difference between command attention key and command function key ?

0 Answers   IBM,


How do you check object lock

0 Answers  


Categories