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

Where do you specify them?

882


What is the syntax for creating a table in the db2 database?

867


What os does db2 run on?

755


What happens in bind step in a db2 program?

733


Describe major components of db2?

860


How do I start db2 in windows?

805


What are the two types of logging in the db2 database? Explain them.

805


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1983


Define declaration generator (dclgen).

883


What is db2 bind process?

948


How do I add a column in db2?

793


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

943


What is clone table?

797


What is the physical storage length of time data type?

893


What kind of database is db2?

783