Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COBOL calling REXX - Online

Status
Not open for further replies.

SowKan

Technical User
Mar 18, 2004
24
IN
I have a requirement in which a COBOL program is being used online. I need to send a e-mail via this program.
Is there a way to do it in COBOL itself?
On the other hand, I have the idea of calling a REXX from the COBOl program. For this REXX to execute, I should be using IRXJCL which is a batch utility. Is there a way by which COBOl can call this REXX online?
 
The answer is YES to both questions.

I have read in the manuals where you can use TCP/IP socket calls within a COBOL program, so it should be feasible.

On the second part, you literally just call IRXJCL as you would any other sub-routine, i.e. CALL 'IRXJCL' USING REXX-PARM.
 
If you go to


you can download two complete jobs illustrating how to call REXX programms from COBOL. The first is simpler to code and uses IRXJCL which only allows you to return a numeric value (return code) from your REXX to COBOL. If you wish for more (return code plus a character string) then call IRXEXEC, that's illustrated in the second example.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top