how to submit a jcl by cobol program.
clear me with an example.
Answer Posted / shriram supalwar, dharmabad
Submission of JCL Job from COBOL program
JOB:
//Jobcard
//STEP1 EXEC PGM=MAINPROG
//DD1 DD DSN=RAM.TEST,DISP=(SHR)
//JCLDD DD SYSOUT=(*,INTRDR)
COBOL PROGRAM:
(MAINPROG)
IDENTIFICATION DIVISION.
PROGRAM-ID. RAM.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT INFILE ASSIGN TO JCLDD
DATA DIVISION.
FILE SECTION.
FD INFILE.
01 JCL-REC PIC X(20).
PROCEDURE DIVISION.
OPEN OUTPUT INFILE.
MOVE "//TYAWJKG JOB (A123, RAM)' TO JCL-REC.
MOVE "//STEP1 EXEC PGM=IEFBR14' TO JCL-REC.
MOVE "//DATA1 DD DSN=A.B.C,DISP=OLD' TO JCL-REC.
CLOSE INFILE.
correct me i am wrong......
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Whats the difference between search & search ALL?
) How do u handle errors in BMS macro?
What is the difference between perform … with test after and perform … with test before?
how do you reference the fixed unblock file formats from cobol programs
What are the various section in data division and briefly explain them.
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are the different data types in cobol?
Name some of the examples of COBOl 11?
what is difference between cobol and cobol/400
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the utilization of copybook in cobol?
How can you get the ksds file records into your cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning