where can we use index and subscript ? with example ?

Answer Posted / tej

In addition to the above,
subscript is like a working storage variable
abc pic 999.
Using index the search for the data is faster since it gives
the object location(displacement) directly.
Subscript can be modified by ADD,SUBTRACT etc
Index modification is UP BY,DOWN BY

and yeah this q should have been in cobol section ;)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2?

735


How do I create a view in db2?

595


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

708


What is the difference between db2 and oracle?

664


What is the physical storage length of date data type?

718






Can one database have multiple instances?

577


When the like statement is used?

627


What is the physical storage length of the data types date, time, and timestamp?

593


What is the difference between oracle and db2?

578


Differentiate between cs and rr isolation levels? Where do you specify them?

570


B37 abend during spufi?

972


What is with ur in db2?

744


How to compare data between two tables in db2?

652


What is null in db2?

567


What parameters are used to control the free space in DB2?

638