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

What are the rules of the move verb?

960


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?

1420


Whats the difference between search & search ALL?

5904


What is the difference between next sentence and continue in cobol programing language?

966


Can a Search can be done on a table with or without Index?

1059


What are the pertinent COBOL

2247


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

11542


What is a report item?

914


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

1030


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

879


What is amode(31)

919


What is the Purpose of Pointer in the string?

836


Are you comfortable in cobol or jcl?

817


What is a SSRANGE and NOSSRANGE?

1129


example for sub strings ? and refernce modifications whit output pls

2080