IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc...
Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to call a cobol program from REXX

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
View previous topic :: View next topic  
Author Message
blackzero



Joined: 20 Mar 2008
Posts: 6
Location: INDIA

Posted: Tue Jul 08, 2008 10:04 pm    Post subject: How to call a cobol program from REXX  

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  
Pedro



Joined: 01 Sep 2006
Posts: 302
Location: work

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

Quote: When i try to the rexx it errors
More details?

How about?:
Code: Address TSO "CALL 'ABC.LOAD(PGM-NAME)' "
Back to top  
ofer71



Joined: 27 Dec 2005
Posts: 1867
Location: Israel

Posted: Tue Jul 08, 2008 10:14 pm    Post subject:  

You can try LIBDEF ISPLLIB followed by SELECT PGM.

O.
Back to top  
superk



Joined: 26 Apr 2004
Posts: 3081
Location: Charlotte,NC USA

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

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  
blackzero



Joined: 20 Mar 2008
Posts: 6
Location: INDIA

Posted: Wed Jul 09, 2008 4:53 pm    Post subject:  

Thanks everyone

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


can be used to call the module

Thanks again.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
Related Links