What is the different between index and subscript?

Answer Posted / raja

Subscript refers to the array occurrence while index is the
displacement (in no of bytes) from the beginning of the
array. 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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use the same COBOL program in Batch and CICS on lines? explain with an example

2142


What is the difference between binary search and sequential search?

880


Write a program to explain size error.

921


Write down the divisions of cobol program?

873


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

885


how do you reference the printer file formats from cobol programs

930


) what is the difference between AID and HANDLE AID?

1912


how do you reference the ksds vsam file formats from cobol programs

907


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2998


Why occurs cannot be used in 01 level in COBOL?

943


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6139


Difference between cobol and cobol-ii?

967


What is the difference between comp and comp-3?

930


IF I mention stop run in CICS what happens?

2126


A table has two indexes defined. Which one will be used by the SEARCH?

1049