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 iseries database?

777


Comment whether the cursor is closed during commit or not.

856


Is db2 a mainframe?

780


How to restart a DB2 program?

1577


Discuss about db2 bind?

859


How many databases can be created inside an instance in db2 ?

806


What is the reason behind not using select * in embedded sql programs?

829


Define check constraint.

832


How to check last update on table in db2?

810


What type of database is db2?

707


What types of tables are there in the db2 database?

783


What is a page in db2?

791


What does db2 mean?

770


What is netezza database?

768


What is the difference between using bind () and rebind () methods of naming class?

1061