Pointers in COBOL.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Pointers in COBOL.

Post by KavalJeet »

Hi,

When should we think about using pointers in COBOL? Is there a situation which can not be solved without pointers? I did look at some documentation https://www.ibm.com/support/knowledgece ... finpnt.htm but I am not sure if I got the answer yet. Could someone please share his experience if they have used this?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Pointers in COBOL.

Post by Robert Sample »

If you want to access z/OS control blocks and their data, you cannot do this without using pointers. There are few circumstances in COBOL for which pointers are absolutely required, but accessing control blocks is one of them.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Pointers in COBOL.

Post by enrico-sorichetti »

the link You posted is for AS/400 cobol
while COBOL is mostly platform independent, the part concerning pointer is not

for zOS see an example here
http://www-01.ibm.com/support/docview.w ... wg21392963
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”