What is usage pointer in cobol?

Answer Posted / sriram

Declare a pointer as an elementary data item bearing the
USAGE IS POINTER clause, with no PICTURE. E.g:
05 EXAMPLE-P USAGE IS POINTER.

EXAMPLE-P is a four-byte field which can store the address
of any data item. Unless you're interfacing COBOL to
Assembler or something, you really don't care what the
pointer looks like internally. It's just a piece of magic
which enables you to access the thing it's pointing to.



Please let me know if I am wrong

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of ibm db2?

740


What is the advantage in De-normalizing tables in DB2?

748


What are the various data types available in db2?

634


What is an instance in db2?

563


What is meant by explain?

662






What is db2 stogroup?

676


What does db2 stand for?

598


What are catalog tables in db2?

609


What is db2 instance?

592


What's The Error Code For Unique Index Voilation?

653


What is db2 optimizer?

771


What is meant by dclgen?

618


Can you use max on a char column?

638


Mention the downsides of page level lock.

711


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

628