What is the difference between index and subscript?
Answer Posted / jkb
Index represents the displacement value of the table entry
from the beginning of the table whereas subscript is the
occurrence number of the table entry.
To calculate the displacement of the table entry from its
beginning when subscript is used takes 16 additional
instructions from the system because of that the usage of
the index is more efficient.
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 ? | 25 Yes | 3 No |
Post New Answer View All Answers
what are decleratives in cobol?
What is the difference between PIC 9.99 and 9v99 in COBOL?
) what is the difference between AID and HANDLE AID?
Which Search verb is equivalent to PERFORM…VARYING?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the utilization of copybook in cobol?
What kind of error is trapped by on size error option?
What is the difference between goback, stop run and exit program in cobol?
What is the use of intialize verb?
What are the different rules to perform a Search?
A table has two indexes defined. Which one will be used by the SEARCH?
how to refer the data field?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What rules are to be followed while using the corresponding options?