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

What is a scope terminator? Give examples.

2 Answers  


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

1 Answers   Wipro,


u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  






S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


What are 77 levels used for?

0 Answers  


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

3 Answers   TCS,


What is SSRANGE, NOSSRANGE ?

5 Answers  


Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?

1 Answers  


Categories