|
|
| Author |
Message |
blackzero
New User
Joined: 20 Mar 2008 Posts: 6 Location: INDIA
|
|
|
|
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 |
|
 |
References
|
Posted: Tue Jul 08, 2008 10:04 pm Post subject: Re: How to call a cobol program from REXX |
 |
|
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 313 Location: work
|
|
|
|
| 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
Global Moderator
Joined: 27 Dec 2005 Posts: 1867 Location: Israel
|
|
|
|
You can try LIBDEF ISPLLIB followed by SELECT PGM.
O. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3096 Location: Charlotte,NC USA
|
|
|
|
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
New User
Joined: 20 Mar 2008 Posts: 6 Location: INDIA
|
|
|
|
Thanks everyone
| Code: |
Address TSO "CALL 'ABC.LOAD(PGM-NAME)' "
|
can be used to call the module
Thanks again. |
|
| Back to top |
|
 |
|
|