Cobol Question:

Download Job Interview Questions and Answers PDF

What is the difference between index and subscript?

Cobol Interview Question
Cobol Interview Question

Answer:

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.

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between SEARCH and SEARCH ALL?How do you define a table/array in COBOL?