what are the diferences b/w sub-script and index?

Answer Posted / kiran

Index is a displacement we cannot do any arthematic
operation by using index only we can asign value by using SET

Ex: set indexname to 1
upby/downby

Subcript is working storage variable we can use in
arethematic operations and used for occurances of a para

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 77 levels used for?

656


How can you get the ksds file records into your cobol program?

639


Difference between array and sub-script ?

1157


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1924


Describe the cobol database components?

675






I have a File that has duplicate records. I need only those records that occur more than thrice.?

8634


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?

1228


What rules are to be followed while using the corresponding options?

631


what is difference between cobol and cobol/400

21556


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

670


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.

5673


What is an in line perform? When would you use it? Anything else you wish to say about it.

641


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

851


How do you define a variable of comp-1 and comp-2?

699