| View previous topic :: View next topic |
| Author |
Message |
mfuser Banned
Joined: 01 Mar 2005 Posts: 105 Topics: 58
|
Posted: Mon Jun 05, 2006 3:21 pm Post subject: need info on PLI program calling a Sub Program |
|
|
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 |
|
 |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Tue Jun 06, 2006 2:53 am Post subject: |
|
|
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 |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 319 Topics: 51 Location: Germany
|
Posted: Wed Jun 07, 2006 12:50 am Post subject: |
|
|
mfuser,
.... or for pl1 / cics programs see exec cics link !
regards,
bauer |
|
| Back to top |
|
 |
|
|
|