How do you code Cobol to access a parameter that has been
defined in JCL?

Answers were Sorted based on User's Feedback



How do you code Cobol to access a parameter that has been defined in JCL?..

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

How do you code Cobol to access a parameter that has been defined in JCL?..

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

How do you code Cobol to access a parameter that has been defined in JCL?..

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

Post New Answer

More COBOL Interview Questions

when COMP-3 is preferrable?

3 Answers   Patni,


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,


how to access the file from prodution from changeman tool and to submit a file to production

1 Answers   IBM,


wht is load module and object module ?

2 Answers   DELL, TCS,


What is XDC ?

3 Answers   Cap Gemini, IBM,






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?

1 Answers   IBM,


What is the difference between Global and External Variables?

0 Answers  


How to recover a deleted source physical file from library?

1 Answers   HCL,


What is redefines clause in COBOL?

0 Answers   B-Ways TecnoSoft,


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


Categories