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 is the compute verb? How is it used?
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?
Difference between cobol and cobol-ii?
What is the difference between comp and comp-3 usage?
What is redefines clause in COBOL?
How are the next sentence and continue different from each other?
how to refer the data field?
how can i see junk values in dclgen or in hostvariable of comp ?
Explain how you can characterize tables in cobol?
What is Pic 9v99 Indicates in COBOL?
Have you used comp and comp-3 in your project? And how?
) How do u handle errors in BMS macro?
What are the rules of the move verb?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?