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

before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

1700


How to view db2 table structure?

579


List down the data types in the db2 database.

626


What is the function of logging in the db2 database?

635


Define data page.

622






What does db2 blu stand for?

651


What is performance tuning db2?

600


What r the comman abends in db2, jcl and cobol???????

1808


How would the varchar column remarks defined?

620


What is the use of db2 optimizer?

601


What do you mean by cursor?

576


Give the name of some fields form sqlca.

607


How do I add a column to an existing table in db2?

578


Mention the various locks that are available in db2.

605


Where can you declare a cursor in a cobol-db2 program?

596