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
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 |
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 |
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
when do you explicitly open files and close files in an rpg program?
When will DUMP and DEBUG opcodes be ignored?
How do I remove a flag or check no. or name when a user opens too many sessions?
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?
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?
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?
How can we sort an array?
how do you pass parameters in cl?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
What is the Difference between command attention key and command function key ?
How do you check object lock