View previous topic :: View next topic
|
Author |
Message |
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
Hi All,
Request to solve my queries...
1. Can we call PL1 program in Rexx
2. Can we call Rexx in PL1 program.
3. if answer is yes for question2 then how can we return a value from rexx so that PL1 can use it.
If answer is yes for question1 then how can we return value from PL1 to rexx. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
The answer is Yes to both questions...
to return a return code is a coordinated responsibility between the called program and the invocation environment
in pli .... call pliretc(return_code)
in rexx . exit return-code
The answer to "how to do it" is much more complicated...
the most simple environment is the ISPF environment, the two calling modes are
Address ISPEXEC select CMD ( pli or rexx command )
Address ISPEXEC select PGM ( pli program )
please look at the appropriate ISPF manual for details
Under a raw ( no ISPF ) environment things are MUCH MUCH more complicated ...
Explaining how in a reply to a post would mean to be able to squeeze a two day course on tso services in a short reply ... :-)
regards
e.s |
|
Back to top |
|
|
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
Thank you enrico-sorichetti. This would really help
Can you please let me know " How can we call rexx in PL1" |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|