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
 

 

Executing ISPF Command and capturing Result through REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Executing ISPF Command and capturing Result through REXX
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    Post subject: Re: Executing ISPF Command and capturing Result through REXX
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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 How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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