How do you code Cobol to access a parameter that has been
defined in JCL?
Answers were Sorted based on User's Feedback
Answer / shan
Ff it is SYSIN input in JCL,
ACCEPT <VARIABLE> FROM SYSIN
If it parameter is give through PARM, then COBOL program
should recieve through LINKAGE SECTION
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / lynn ertell
Apparently you cannot use the ACCEPT verb against the
LINKAGE parameters if you are already using SYSIN.
It's either one or the other but not both.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
when COMP-3 is preferrable?
How to covert given string into ASCII value in COBOL/MF COBOL
how to access the file from prodution from changeman tool and to submit a file to production
wht is load module and object module ?
What is XDC ?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
how do u list the abended jobs?
What is the difference between Global and External Variables?
How to recover a deleted source physical file from library?
What is redefines clause in COBOL?
which is better comp or comp-3 in terms of memory utilization?
how we can edit records in vsam data set and non vsam data sets