What is usage pointer in cobol?

Answers were Sorted based on User's Feedback



What is usage pointer in cobol?..

Answer / nidhi

1. Its declared without a pic clause. Only "usage is pointer" is declared for the variable.
2. Its a 4 byte variable used to hold address of variables in linkage sectio only.
3. "seT ADDRESS OF VAR-LINK-SEC TO POINTER-VAR" is how we get address into pointer var.

Is This Answer Correct ?    1 Yes 0 No

What is usage pointer in cobol?..

Answer / varalakshmi

You can use pointer data items when you want to accomplish limited base addressing,
particularly when you want to pass and receive addresses of a variably located record
area.

Is This Answer Correct ?    0 Yes 0 No

What is usage pointer in cobol?..

Answer / 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

More DB2 Interview Questions

What is collection in db2 bind?

0 Answers  


Can we able to find all the Table names under a Particular Plan?

1 Answers   CTS,


Can you access the DB2 Directory table using SQL?

3 Answers  


I have 1000 rows in a db2 table.I want to update first 100 records,How do I do it?

4 Answers   CTS,


What is cursor in dbms?

0 Answers  






What is index in db2?

1 Answers  


How many Buffer pools are there in DB2 and what are they?

1 Answers   IBM,


Outputs of explain are with matchcols = 0. What does this signify?

0 Answers  


What does db2 mean?

0 Answers  


What type of database is db2?

0 Answers  


What are the 4 environments which can access DB2 ?

2 Answers  


what is the name of the default db2 catalog database?

3 Answers   IBM,


Categories