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 

Cobol using pointers concept

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


Joined: 08 Jul 2008
Posts: 5
Topics: 2

PostPosted: Wed Oct 22, 2008 12:56 am    Post subject: Cobol using pointers concept Reply with quote

Hi,

can any one help me how to use the pointer concept in CObol.

i have two programs. first program has to call second one using pointers.

and second program has to return the values using pointers again.

Please help me on this is very urgent for me.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Oct 22, 2008 1:03 am    Post subject: Reply with quote

pointers can contain the address of an area.

enterprise cobol allows one to set a pointer to an area in working-storage. cobol II, one could only use linkage.

in your calling program you can set a pointer(s) to an area(s), and then pass the pointers with your CALL.

the CALLed program would have 4 linkage items. 2 pointers and two areas. you would set the address of each area to the respective pointer. manipulate the data in the areas within linkage.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
mahesh31
Beginner


Joined: 08 Jul 2008
Posts: 5
Topics: 2

PostPosted: Wed Oct 22, 2008 2:36 am    Post subject: Reply with quote

Thanks for the quick reply.. we are using this pointers for CICS/Cobol programs.

if you could send me any sample program for this then that will be of great help.

waiting for the response Crying or Very sad
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Oct 22, 2008 12:59 pm    Post subject: Reply with quote

mahesh31,

You can look at these links -

http://www.mvsforums.com/helpboards/viewtopic.php?t=7569&highlight=linkage+section+pointer

http://www.mvsforums.com/helpboards/viewtopic.php?t=3367&highlight=address

Diba
Back to top
View user's profile Send private message Send e-mail
jhandu
Beginner


Joined: 01 Oct 2008
Posts: 6
Topics: 0
Location: India

PostPosted: Thu Oct 23, 2008 1:29 am    Post subject: Reply with quote

http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/c0925405287.htm

This may be of help to you.
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