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 to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
how do you reference the variable unblock file formats from cobol programs
What are the pertinent COBOL commands?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What are declaratives and what are their uses in cobol?
What is the difference between goback, stop run and exit program in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Write some characteristics of cobol as means of business language.
What is the difference between next sentence and continue in cobol programing language?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What guidelines should be followed to write a structured cobol prgm?
Have you used comp and comp-3 in your project? And how?
What is an in line perform? When would you use it? Anything else you wish to say about it.
how to access the file from prodution from changeman tool and to submit a file to production
Differentiate between structured cobol programming and object-oriented cobol programming.