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

Explain complete concept of table handling in COBOL with an example?

2 Answers   IBM, TCS, Wipro,


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


How many sections are there in data division in COBOL?

0 Answers   B-Ways TecnoSoft,


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

2 Answers  


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


What do you understand by passing by reference and passing by content?

1 Answers  


How to recover a deleted source physical file from library?

1 Answers   HCL,


how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


how would find total records in files using seqientional

1 Answers   HSBC,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


Can we use redefine clause in occurs clause?

10 Answers  


What are the pertinent COBOL commands?

0 Answers   Satyam,


Categories