Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us