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 techniques will be used to avoid deadlock??

5 Answers   IBM, SUN,


What is a LIKE table and how is it created?

2 Answers  


What is the use of reorg in db2?

0 Answers  


I am having n number of records in a table which consists of emp-name is one of the field among them. Now i want to change the first letter of every name with capital.

1 Answers   Cap Gemini,


I have a DB2 table which has 1000 rows.after udatingg first 110 rows, my job abends. Now what I have to do if I want to restart the job next time so that it should start updating from 111th row (without updating first 110 rows again).

10 Answers   Cap Gemini, Wipro,






In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

0 Answers  


What are the 4 environments which can access DB2 ?

2 Answers  


What is query_cache_limit?

0 Answers  


What parameters are used to control the free space in DB2?

0 Answers  


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

0 Answers   MCN Solutions,


What is Call attach facility? How does it work?

1 Answers   Syntel,


How to resolve -504 sql code in DB2?

2 Answers   Cap Gemini,


Categories