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 are the utility programs in jcl?
Explain the job statement in jcl?
what is use of dsn parameter in dd statement?
Is it possible to code instream data in a PROC?
How can a stopped job be started again?
Explain about LMQUERY�give a dialog information about a data set
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Matching Logic in Jcl not in cobol.Could any one please answer this question
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
How can the disposition of sysout datasets be set for an entire jobstream?
What are hierarchy levels in jcl?
In job processing, what happens in execution stage?
Define concatenating?
How do you overcome this limitation ?
Explain the function of the dd dcb keyword?