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
What is the LINKAGE SECTION used in COBOL?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
example for sub strings ? and refernce modifications whit output pls
what are decleratives in cobol?
What is a report item?
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
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Which is not true about evaluate statement
What is cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Explain about different table spaces.
What is the difference between Call and a Link?
What are the cobol coding sheets?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?