View previous topic :: View next topic
|
Author |
Message |
chani823
New User
Joined: 30 Mar 2005 Posts: 5
|
|
|
|
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 |
|
|
ranjit_bh
New User
Joined: 06 Apr 2005 Posts: 7
|
|
|
|
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 |
|
|
|