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 

need info on PLI program calling a Sub Program

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


Joined: 01 Mar 2005
Posts: 105
Topics: 58

PostPosted: Mon Jun 05, 2006 3:21 pm    Post subject: need info on PLI program calling a Sub Program Reply with quote

Members,

I am looking for program in PLI which calls a sub-program with values and the subprogram process and returns data to the calling program.Is there a concept of Static and Dynamic call in PLI ?.What are the types of passing values from main program to a sub program ? I am also interested in a sample COBOL program with a Static call and a Dynamic call ?
Back to top
View user's profile Send private message
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue Jun 06, 2006 2:53 am    Post subject: Reply with quote

Hi,

PL1 has Static and Dynamic calls.

STATIC - you will call the program with statement CALL and the module name with the perameters. It should be declared as EXTERNAL in the main program to identify the sub module.

DYNAMIC - Dynamic calls are used through FETCH statement. You can fetch the module dynamically and release it.

You can pass and get the values like C++ function parameters.
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 319
Topics: 51
Location: Germany

PostPosted: Wed Jun 07, 2006 12:50 am    Post subject: Reply with quote

mfuser,

.... or for pl1 / cics programs see exec cics link !

regards,
bauer
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