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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 1 Sun Mar 12, 2017 5:35 pm
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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm


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