If you were passing a table via linkage, which is
preferable - a subscript or an index?

Answers were Sorted based on User's Feedback



If you were passing a table via linkage, which is preferable - a subscript or an index?..

Answer / rama krishna

Since, index is not part of Working-Storage section, you
can not pass the value of index via linkage section. Hence,
you have to always use subscripts...

Is This Answer Correct ?    18 Yes 1 No

If you were passing a table via linkage, which is preferable - a subscript or an index?..

Answer / aji cherian

Sbscript

Is This Answer Correct ?    9 Yes 0 No

If you were passing a table via linkage, which is preferable - a subscript or an index?..

Answer / aji cherian

A subscript

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More COBOL Interview Questions

Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


. How do we cast a variable in COBOL

1 Answers   HSBC,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?

4 Answers  


How to read a record from bottom of a file which is indexed by 'A'.

4 Answers   Oracle,






what are the limitations of Inline Perform?

3 Answers   Zensar,


How do you set a return code to the JCL from a COBOL program?

4 Answers  


What the difference is between continue and next sentence?

0 Answers  


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


What is the difference between comp and comp-3?

0 Answers  


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


can we declare occurs in 01 level?

2 Answers   Temenos,


Categories