View previous topic :: View next topic |
Author |
Message |
rajeshkumarj Beginner
Joined: 05 Mar 2003 Posts: 2 Topics: 2
|
Posted: Thu Mar 06, 2003 12:02 am Post subject: Simple Sample program using pointers |
|
|
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 |
|
Back to top |
|
|
meeran Beginner
Joined: 23 Dec 2002 Posts: 7 Topics: 3
|
|
Back to top |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Fri Mar 07, 2003 1:24 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
|
Back to top |
|
|
|
|