#1: Simple Sample program using pointers Author: rajeshkumarj, Posted: 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, Posted: Thu Mar 06, 2003 4:58 am Hi Rajesh,
#3: Author: slade, Location: Edison, NJ USAPosted: 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: slade, Location: Edison, NJ USAPosted: 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.