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..

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the sequence when using cursor?

1273


Can level check error occur if we do chgpf?

1293


Difference Between Call & Sbmjob?

1339


what are the different types of data areas?

1816


is it possible to create a physical file without dds?

2043


which of the cl command can be used to determine which logical files are dependent on a specific file?

1141


how many specifications are there in rpg/400? What are they?

2095


how do handle file exception/error?

1228


how can you execute a command from within an rpg program without calling a clp program?

2074


Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?

1179


what is a logical file?

1916


what is the purpose of ovrdta and ovrata keywords ?

1578


how many files can be defined in f specs?

2465


What is the difference between crtdupobj and copyf?

1246


What is binder language ?

1968