Simple Sample program using pointers
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Application Programming

#1: Simple Sample program using pointers Author: rajeshkumarj PostPosted: Thu Mar 06, 2003 12:02 am
    —
Hi
I'm new to Mainframe but i'm versed with basics of COBOL . There may be some enhancement project in COBOL ,i thought of using some advanced concepts which will be more efficient in terms of memory & all.
I know how the pointers are used in C language and how advantage it has got. Can anyone come up with some suggestions & advantage if any is there in using Ppinters in COBOL.
And anyone can please send some simple sample program using pointers in COBOL tht wud be really helpful for me

Thanks & regards
Rajesh

#2:  Author: meeran PostPosted: Thu Mar 06, 2003 4:58 am
    —
Hi Rajesh,

I think the below link will helpful to you...

http://home.swbell.net/mck9/cobol/tech/cobolptr.html

Regards,
Meeran

#3:  Author: sladeLocation: Edison, NJ USA PostPosted: Fri Mar 07, 2003 1:24 pm
    —
Hi Rajesh,

Although IBM manuals suggest link list navigation and manipulation as an application of the pointer facility, navigating OS control blocks seem to be the most popular use of the feature.

You can't modify them because they are generally in protected areas, but you can find, use and/or display any OS or JES info if you know how to get to it. Examples are:

job name, step name, DD/dsns, caller pgm name, and it goes on.

Regards, Jack.

#4:  Author: sladeLocation: Edison, NJ USA PostPosted: Sat Mar 15, 2003 12:26 am
    —
BTW,

Kolusu's code in the thread provided below is a succinct example of using pointers to find MVS/JES system info.

http://www.mvsforums.com/helpboards/viewtopic.php?t=536



MVSFORUMS.com -> Application Programming


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group