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: 29
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: 6966
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 cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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