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 a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?

6 Answers  

Can you use a select query in a loop to fetch multiple rows? If so what is the advantage of using a cursor?

2 Answers   L&T, UST,

how to unload different table data into different gdg files/ vsam files.

3 Answers  

what happend with out using Commit,when closing cursor and program?

5 Answers   CSC,

is there any restrictions for unions ?

4 Answers   Patni,

Can DASD types assigned to storage groups be intermixed (i.e., 3350s and 3380s)?

1 Answers  

in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert

1 Answers   TCS,

what is the use of bind parameter, Replace?

5 Answers   IBM,

What are simple, segmented and partitioned table spaces ?

1 Answers   TCS,

how do you resolve -818 error in db2. where we have to see time stamp token. i said by seeing in load module and plan .is it correct or not. give clear explination for how to see time stamp token

2 Answers   IBM, TRD,

When you are working with the project after coding what will u do? Like what type of documents u will prepare? How will u do testing?

2 Answers  

If we have 100 records in the PF, we deleted all the records then what is the Size of the PF?

2 Answers