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 

fetch and call

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


Joined: 18 Jan 2003
Posts: 13
Topics: 7
Location: 7/2,rams Apartments,Chennai1-14

PostPosted: Sun Feb 03, 2008 3:06 am    Post subject: fetch and call Reply with quote

cAN WE HAVE FETCH AND CALL TOGETHER IN pli programs
_________________
JAGADISH
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Mon Feb 04, 2008 4:59 am    Post subject: Reply with quote

Yes. You need to have FETCh and then followed by CALL for the Fetched module.

Usaully we cod as follows:

Code:
DCL module_name EXTERNAL ENTRY(PTR) OPTIONS(FETCHABLE);

CALL module_name(PTR);


Or

Code:
DCL module_name EXTERNAL ENTRY(PTR);

FETCH module_name;

CALL module_name(PTR);
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Feb 04, 2008 5:35 am    Post subject: Reply with quote

Actually, you do not need the FETCH if you have RELEASE. The compiler will spot one of these and realise that the called module will not be linked into the main load module and will generate the necessary code. However, it is not wrong and I always do FETCH/CALL/RELEASE in my own programs.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kgaugelo
Beginner


Joined: 14 Jan 2008
Posts: 1
Topics: 0

PostPosted: Mon Feb 25, 2008 1:32 am    Post subject: Reply with quote

how does the call and copy statements work, mostly when it come to copying/calling external programs???
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Feb 25, 2008 3:54 am    Post subject: Reply with quote

kgaugelo

You should start new thread for a new topic.

COPY is a directive to the compiler to copy in some source code into your source code before it compiles it.

CALLing a program happens when your program is already executing and it CALLs another program to do some function.

This is probably something that you could have found out by looking in the index of the manual for COPY and CALL.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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