Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we call PL1 program in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
bhim_s

New User


Joined: 19 Sep 2006
Posts: 46
Location: New Delhi

PostPosted: Thu Aug 30, 2007 5:41 pm    Post subject: Can we call PL1 program in rexx
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Aug 30, 2007 6:44 pm    Post subject: Reply to: Can we call PL1 program in rexx
Reply with quote

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
View user's profile Send private message
bhim_s

New User


Joined: 19 Sep 2006
Posts: 46
Location: New Delhi

PostPosted: Fri Aug 31, 2007 6:50 pm    Post subject:
Reply with quote

Thank you enrico-sorichetti. This would really help

Can you please let me know " How can we call rexx in PL1"
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Sat Sep 22, 2007 3:48 am    Post subject: Reply to: Can we call PL1 program in rexx
Reply with quote

take a look at

http://www-1.ibm.com/support/docview.wss?rs=960&context=SSALJ7&dc=D400&uid=swg24003838&loc=en_US&cs=UTF-8&lang=en&rss=ct960other

regards

e.s
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us