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
What is the purpose of disp parameter?
how you will the direct the data to spool using sysout option?
Explain how can the submitting users racf authority be overridden in a job stream?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
How can values be passed from the job stream to an executable program?
What is the function of job statement in jcl?
what operation is performed by job statement?
What are the 4 fields in dd statement?
Are there any set of rules for the names of the steps used in a job?
How can the submitting users racf authority be overridden in a job stream?
List the various advantages of using jcl language?
How do you create a temporary dataset?
how can the same proc be re-used and called by many jobs?
Explain how can a stopped job be started again?
What is the use of symbol // in jcl?