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 / 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 |
Post New Answer View All Answers
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
What is the difference between non-join logical files and join logical files?
can a indexed file be accessed in arrival sequence in rpg program?
How to Define a Procedure in RPG?
What is the draw back of Procedures? why we are going to Modules?
what are the three types of keywords associated with printer file ?
What is dynslt?
how can u check no of records in a file?
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
give three main purposes of file specification ?
what is the use of sflend keyword?
What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?
what the purpose of ovrdta, ovrata keywords?
what is the purpose of ovrdta and ovrata keywords ?
can a single screen format occupy a screen area above and below a subfile format ?