Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I dont understand the POINTER use i 3

Status
Not open for further replies.

municipal

Programmer
Jan 1, 2001
62
IL
I dont understand the POINTER use in cobol
Is somebody can send me a sample program that can clarify me the subject
TIA.
 
Hi Muni,

Just a minor (and probably obvious) cautionary note: the POINTER facility discussed in Dimandja's excellent source bears no relationship to the POINTER clause used by some COBOL verbs, such as INSPECT and UN/STRING.

Also, most discussions of POINTER cite its use in processing linked lists, but most of the "forum" buzz about it relates to its use in accessing system control blocks.

Regards, Jack.
 
And to follow-up on that last post:

- USAGE POINTER and SET xxx TO ADDRESS OF
are extensions to the '85 ANSI/ISO Standard and are *not* particularly portable across implementations that have this extension

- POINTER in INSPECT and <UN>STRING are ANSI/ISO conforming and quite portable

- The 2002 ANSI/ISO Standard introduces &quot;based data items&quot;, USAGE POINTER and SET ADDRESS features

Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top