How do you code Cobol to access a parameter that has been
defined in JCL?
Answer Posted / harish
environemnt division
file1 assign to ddname
file2 assign to ddname
for this in JCL //DDNAME DD DSN.......
LINKAGE SECTION
01 LN-LEN PIC S9(4) COMP.
01 X PIC X
01 Y PIC X
IN JCL THROUGH PARM (MAX 1 TO 100 CHAR)
procedure division.
ACCEPT X
ACCEPT Y.
IN JCL THROUGH SYSIN DD*
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Difference between array and sub-script ?
how do you reference the printer file formats from cobol programs
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how do you reference the variable unblock file formats from cobol programs
What is a report item?
For rewrite, why is it mandatory that file needs to be opened?
How do u write test cases?
How you can characterize tables in cobol?
What is the difference between goback, stop run and exit program in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Explain about different table spaces.
How many bytes S(8) comp field occupy and its maximum value?
Describe the cobol database components?
Write a program to explain size error.