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

how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp

3 Answers   CTS,


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


Without using move verb how to move one variable to another.

5 Answers  






There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


What is the difference between copy and include in cobol?

1 Answers  


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

0 Answers   IBM,


wht is load module and object module ?

2 Answers   DELL, TCS,


Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is

12 Answers   TCS,


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


What does the INITIALIZE verb do?

1 Answers  


Categories