What is usage pointer in cobol?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the difference between base table and view?
What is db2 command?
What is the difference between bind and rebind in db2?
What is DB2 (IBM Database 2)?
How we create a tables in DB2 ?Previously client has using 7 letters for user id,now he wants to increase the letters from 7 to 12 for user id.How we can do it?
When do you specify the isolation level?
can we update the table by using cursors can anyone post the query?
Suppose we are doing transaction in a table and abend happened in between. Suppose i have completed the transaction upto X rows and I want to start the transaction again where the abend happened. I don't want to do the transaction from the first record. Then what i have to do.
1. what if null values retrived from database and no null indicator mentioned in query. What is sql code.
Explain the benefits you can get from mainframe connect?
When is the authorization check on DB2 objects done - at BIND time or run time?
What is check constraint. Explain with example.