MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple Sample program using pointers

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rajeshkumarj
Beginner


Joined: 05 Mar 2003
Posts: 2
Topics: 2

PostPosted: Thu Mar 06, 2003 12:02 am    Post subject: Simple Sample program using pointers Reply with quote

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
View user's profile Send private message
meeran
Beginner


Joined: 23 Dec 2002
Posts: 7
Topics: 3

PostPosted: Thu Mar 06, 2003 4:58 am    Post subject: Reply with quote

Hi Rajesh,

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

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

Regards,
Meeran
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Fri Mar 07, 2003 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Mar 15, 2003 12:26 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group