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

)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1744


Explain about different table spaces.

854


For rewrite, why is it mandatory that file needs to be opened?

834


What are the pertinent COBOL commands?

2824


What kind of error is trapped by on size error option?

953


Write a cobol program making use of the redefine clause.

921


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

969


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?

1077


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1209


how do you reference the fixed unblock file formats from cobol programs

922


When is inspect verb is used in cobol?

921


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5421


How you can read the file from bottom?

868


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

2957


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5082