Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us