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
 
Calling Rexx program and get execution detaul in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mukun264

New User


Joined: 01 Jan 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Jun 07, 2013 1:57 pm    Post subject: Calling Rexx program and get execution detaul in cobol
Reply with quote

Hi,
I am looking an idea /concept by which cobol program can execute REXX program or TSO command and get the execution output in cobol. For example if I run TSO HELP then all information i wanted to get in cobol and wanted to right in commarea to pass to some other programs.

I am able to execute the tso command and rexx but not able to get back the output of TSO command using TSOLNK and IKJEFTSR..

Can If any one provide the proof of concept.

Mukund
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Jun 07, 2013 4:41 pm    Post subject:
Reply with quote

OUTTRAP will catch most output for the REXX.
then write the OUTTRAP stem to a file to be read by the COBOL program.

you could write to a variable pool,
but then your COBOL program would need to code the necessary TSO commands to access the data.
By using a file, the COBOL program do not need to use ISPF or TSO commands.,

the above is not a proof of concept, it is only a method by which you can
accomplish the task.

there are other ways.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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