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
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What is the function of //jcllib statement?
how would you create a temporary dataset? And where will you use them?
How do you access an uncatalogued dataset in a jcl?
How jcl work to handle various input output file operations?
What are hierarchy levels in jcl?
Can we call instream to catalog and catalog to instream?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
what is the use of JCL?
What does a disposition of (MOD,DELETE,DELETE) mean ?
List in order the hierarchical levels of jcl?
What is the difference between the positional and keyword parameters? Give examples.
is there any way to execute more than one proc in the same exec statement at the same time..?
How dummy is used in jcl?
Give the syntax of job specifying jcl statement.