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 ?    0 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

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:

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

can you use symbolic parameters in JOB?

5 Answers   IBM,

What are the three lock types?

2 Answers  

What is a LIKE table and how is it created?

2 Answers  

What are the Isolation levels possible ?

5 Answers  

what is a trigger and types of triggers

3 Answers   HSBC,

What is tablespace?

3 Answers  

What is the SQL query to select, delete and get count of duplicate rows in DB2?

2 Answers  

While creating a table, by mistake you have given size of one field as 10. But as per requirement size should be 8. What is your next step?

4 Answers   CTS,

Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?

1 Answers  

select 100 records from million records ?

2 Answers   Verizon,

What can the Locate option of the Repair Utility accomplish?

2 Answers  

how to u check the query is executing or not ?where will u check for sqlcode ?

6 Answers   Infosys,