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

RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE

12 Answers   TCS,


how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 Answers  


Can you please let me know the centre name of INS certification in Kolkata.

0 Answers  


wht do u mean by (*,intrdr) wht is * used for ?

2 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,






What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


how will u code parm parameter and where pls ?

3 Answers   DELL,


What are the differences between OS VS COBOL and VS COBOL II?

1 Answers   IBM,


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


What is the file organization clause ?

2 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


Categories