Answer Posted / bala
Jcl:
JOB: //STEP1 EXEC PGM=MAINPM
//DD1 DD DSN=MUTHU.TEST,DISP=SHR
//JCLDD DD SYSOUT=(*,INTRDR)
Cobol:
PROGRAM:MAINPGM
SELECT JCLFILE ASSIGN TO JCLDD…. (Environment Division)
FD JCLFILE.
01 JCL-REC PIC X(80). (File Section)
OPEN OUTPUT JCLFILE. (Open in output and write JCL statements)
MOVE ‘//TESTJOB JOB 1111’ TO JCLREC.
MOVE ‘//STEP01 EXEC PGM=IEFBR14’ TO JCLREC.
CLOSE JCLFILE (TESTJOB will be submitted automatically)
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to alter the parameters for the existing gdg?
In sms datasets, what is the function of the dd mgmtclas keyword?
What dd statement is used to supply the name of a dataset?
What is the function of //cntl statement?
What is the significance of addrspc parameter in exec statement?
How does jcl act on code(if you take a cobol program)?
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
What is the function of dd disp parameter?
Must tape dataset definitions include vol=ser specifications?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is multithreading in jcl?
how you can access an uncataloged dataset in a JCL?
Name a few IBM utility programs, and explain its function.
What parameter of the job statement is used to limit the cpu time consumed by the job?