What is the difference between a subscript and an index in
a table definition?

Answer Posted / satheesh gova

subscript specifies the no of occurances of a table or
array where as index specifies the displacement of a
table,subscript is working storage variable but index is not
working storage section variable,by using arithematic
operations we can increment and decrement the value of
subscript,but by using SET verb we can get it in index.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss about changing dataset name in proc.

760


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?

1806


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?

1230


What is comp-1 and comp-2?

764


In COBOL programming, what is PERFORM? What is VARYING?

670






Write a program to enter and display the names of students in a class using the occurs clause.

652


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

712


What is a SSRANGE and NOSSRANGE?

820


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897


example for sub strings ? and refernce modifications whit output pls

1846


What are the pertinent COBOL

2045


Write the code implementing the perform … varying.

646


Why would you use find and get rather than to obtain?

687


What are 77 levels used for?

659


What are the different types of condition in cobol and write their forms.

658