What is the different between index and subscript?

Answers were Sorted based on User's Feedback



What is the different between index and subscript?..

Answer / ash

Subscript - refers to the array occurance

Index - refers to the byte position/displacement of the
occurance from the start of the array

Is This Answer Correct ?    4 Yes 0 No

What is the different between index and subscript?..

Answer / sharath-hyd

INDEX is Displacement position of array data name.
Subscript is No. of occurenceof array data name.

Is This Answer Correct ?    4 Yes 0 No

What is the different between index and subscript?..

Answer / raja

Subscript refers to the array occurrence while index is the
displacement (in no of bytes) from the beginning of the
array. An index can only be modified using PERFORM, SEARCH
& SET. Need to have index for a table in order to use
SEARCH, SEARCH ALL.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More COBOL Interview Questions

Can we use redefine clause in occurs clause?

10 Answers  


what is soc7 abend?how u can trace it?

4 Answers   Accenture,


What is sqlca and why is it needed in any cobol-db2 program?

1 Answers  


what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?

1 Answers   HCL,


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  


can we write paragraph in area B .....

4 Answers   L&T,


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


how will you define vsam file in select clause?

3 Answers   Patni,


HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?

2 Answers  


Can anybody give me example of subscript and index

5 Answers  


Categories