IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Calling Rexx program and get execution detaul in cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top