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
How to submit jcl through a cobol program?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
How can a fb file convert to vb file using sort program?
Explain in DD statement what is the use of DCB parameter?
Explain how can a stopped job be started again?
What is the difference between run mode and addressing mode?
what are JCLLIB and STEPLIB in JCL?
How to submit a jcl from cics?
What is catelog procedure and how many catelog procedure to use in one job?
What is multithreading in jcl?
what is the resolution for sb37 error
What happens if both JOBLIB & STEPLIB is specified ?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
How gdg are concatenated?