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 |
What is library is as400? What are the types of library?
An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can we update this file? Please explain?
we have 2 PF files with same name, how to copy data's from one file to another through RPG program logic?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx
How to create files dynamically without DDS?
In there is 100 no. of recordsin PF, if i delete all the records. Then what is the Size of the PF?
What is the Function of PDM?
can you have multiple key lists for a single file ?
can you specify a display file to be used in the following modes input,output, or combined modes ?
How can you check the existence of object in a system?
What does the keyword UNIQUE mean ?