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
 
How to call a cobol program from REXX

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

New User


Joined: 20 Mar 2008
Posts: 6
Location: INDIA

PostPosted: Tue Jul 08, 2008 10:04 pm    Post subject: How to call a cobol program from REXX
Reply with quote

Hi,

I need to call a cobol program from a rexx program. I tried the option ADDRESS LINKPGM 'PGM-NAME' but its not working. When i try to the rexx it errors

1. REXX code is in the PDS ABC.REXX
2. COBOL code is in the PDS ABC.COBOL
3. COBOL LOAD module is in the PDS ABC.LOAD

Please suggest me if there is any way to do it.

Can you please provide me the complete REXX code for this.
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Tue Jul 08, 2008 10:11 pm    Post subject: Reply to: How to call a cobol program from REXX
Reply with quote

Quote:
When i try to the rexx it errors

More details?

How about?:
Code:
Address TSO "CALL 'ABC.LOAD(PGM-NAME)' "
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 08, 2008 10:14 pm    Post subject:
Reply with quote

You can try LIBDEF ISPLLIB followed by SELECT PGM.

O.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 08, 2008 11:32 pm    Post subject: Reply to: How to call a cobol program from REXX
Reply with quote

I have found that Address LINKMVS always works well when the exec is running in a non-TSO/E address space:
Code:

/* REXX */
Address LINKMVS "MYPROG PARAMETERS"
Back to top
View user's profile Send private message
blackzero

New User


Joined: 20 Mar 2008
Posts: 6
Location: INDIA

PostPosted: Wed Jul 09, 2008 4:53 pm    Post subject:
Reply with quote

Thanks everyone

Code:

Address TSO "CALL 'ABC.LOAD(PGM-NAME)' "


can be used to call the module

Thanks again.
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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