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
How do get the result of your program directly on your pc?
How are the next sentence and continue different from each other?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How you can characterize tables in cobol?
What is link edit in cobol?
What is the difference between Global and External Variables?
Difference between cobol and cobol-ii?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are the pertinent COBOL commands?
how do you reference the variable unblock file formats from cobol programs
A table has two indexes defined. Which one will be used by the SEARCH?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are different data types in cobol?