how can we pass parameters from JCL to cobol
subprogram...my requirement is i should not get data from
mainprogram but i need it from JCL directly
Answer Posted / abhijit saha
You can do it using SYSIN parameter in JCl and ACCEPT in
COBOL-
JCL using SYSIN
//STEP01 EXEC PGM=CBLPRGM
//STEPLIB DD DSN=SOMETIME.DEMO.LOADLIB,DISP=SHR
//SYSIN DD *
This is a single parameter from STEP01 and SYSIN
/*
Cobol Pgm which uses this JCl
DATA DIVISION.
WORKING-STORAGE SECTION.
..........................
01 SYSIN-PARAMETER pic X(80) value SPACES.
PROCEDURE DIVISION.
..........................
ACCEPT SYSIN-PARAMETER from SYSIN
| Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
Explain how can a stopped job be started again?
How do you create a temporary dataset?
Are there any set of rules for the names of the steps used in a job?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
When output dataset space is required, what quantity categories are used?
What is NOTCAT ?
Can I send output of job to my remote device careerride123?
what is use of disp parameter in dd statement?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
How would you understand error(execution phase)?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
what is the use of IEBGENER utility?
What is use of restart and how to use it?
which utility is used to run a cobol-db2 program?
What is the significance of addrspc parameter in the exec statement?