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
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
whats the diff bw the evaluate also and and?
How to run cobol program using jcl?
Explain how can return codes be tested before execution of a job step?
what are the statements that are not valid to be included in an include statement?
what is the JCL statement consists of?
Explain dfsort utility?
what is the purpose of coding notify parameter in job statement?
what is the resolution for sb37 error
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
Explain the function of a dd statement?
Is automatic restart possible in jcl?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
how do you code a null statement?