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

Executing ISPF Command and capturing Result through REXX


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chani823

New User


Joined: 30 Mar 2005
Posts: 5

PostPosted: Fri Apr 15, 2005 6:23 pm
Reply with quote

Hi All,

I need help, Can someone tell me how can I execute ISPF command and capture Result using REXX?

E.g.

I want to capture result of ISPF command
s.da;pre IND* in a file.

Any pointers are welcome.

Thanks and Regards
Chani
Back to top
View user's profile Send private message
ranjit_bh

New User


Joined: 06 Apr 2005
Posts: 7

PostPosted: Fri Apr 15, 2005 10:33 pm
Reply with quote

Hi,
You can check out the OUTTRAP command in REXX to trap the output of an ISPF command into a variable:
Ex:
x = OUTTRAP('MYVAR.')
ADDRESS TSO "DEL DT.LIST"
x = OUTTRAP("OFF")

The meesage "<userid>.dt.list was deleted" will not be displayed on the ISPF screen and will be available in the stem variable 'MYVAR'.

Hope this helps,
Ranjit
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top