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
In which area will you utilize 88 level items in cobol?
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?
What type of SDLC u followed? Why?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is report-item in COBOL?
What is link edit in cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
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 to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
) how do u code after getting data?
What is the utilization of copybook in cobol?
Name some of the examples of COBOl 11?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
what is search and searchall?what is the diffrence between them?give an best example?