How do you submit JCL via a Cobol program?
Answer Posted / guest
In your JCL define as //JOBA JOB 1111, JOB1 //STEP01 EXEC
PGM=PROG1 //ddname DD SYSOUT=(*,INTRDR)....and your
COBOL(PROG should look like this SELECT JCL-FILE ASSIGN TO
ddname. Open this file and write the JCL statements into
this file. E.g. MOVE '//TESTJOB JOB 1111,VISVEISH' TO
JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL- REC and
close this file. Then TESTJOB will be submitted.
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is the use of symbol // in jcl?
what sort card you will use to copy the data from one dataset to another dataset?
What are the difference between jcl and jes?
How is the record format of an output dataset specified?
what are the various stages of job processing?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
define cond parameter in jcl?
What is the purpose of dd?
when does a dataset go uncataloged?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
Is automatic restart possible in jcl? If yes, how?
What is the difference between run mode and addressing mode?
What is condition checking in jcl? Is this possible?