When to use PROCEDURE-POINTER phrase?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.

Topic author
Neeraj N
Registered Member
Posts: 34
Joined: Tue Aug 20, 2013 12:49 pm
Has thanked: 2 times

When to use PROCEDURE-POINTER phrase?

Postby Neeraj N » Wed Jul 12, 2017 1:57 pm

In one of the programs I've seen that they are using PROCEDURE-POINTER phrase. Have read about it here: https://www.ibm.com/support/knowledgece ... ddepro.htm but I could not really understand when do we really made a decision to make use of PROCEDURE-POINTER? Could someone please guide me on this.



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

Re: When to use PROCEDURE-POINTER phrase?

Postby Robert Sample » Wed Jul 12, 2017 5:05 pm

A PROCEDURE-POINTER is needed if AND ONLY IF you need the starting address of a program. This is needed for certain LE functions. The PROCEDURE-POINTER is rarely used.




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

Who is online

Users browsing this forum: CommonCrawl [Bot] and 2 guests