Is this what you are trying to do? 'pipe command NETSTAT TELNET | stem sve1.' 'pipe stem sve1. | > sve TEXT A' 'browse sve TEXT A'
This works for me. Paul Feller AIT Mainframe Technical Support From: The IBM z/VM Operating System [mailto:[email protected]] On Behalf Of Gentry, Stephen Sent: Sunday, July 12, 2009 8:48 PM To: [email protected] Subject: NETSTAT and PIPES (I tried to post this to the cms pipes list but it was rejected) I have a simple EXEC that pipes the output of the NETSTAT command to a stem. If I issue NETSTAT in a normal CMS session, I get the results back that I expect. When run it in an EXEC containing a PIPE, I get errors from the NETSTAT command. Code: PIPE CMS NETSTAT TELNET | stem myStem. There two files with the name NETSTAT, one is a MODULE the other an EXEC. When I run It from a CMS session, the EXEC gets invoked but when I run it from and EXEC I wrote containing the PIPE command above it seems to invoke the MODULE. Is that the way PIPES work? I thought the CMS param set the environment. Any thoughts? Thanks, Steve
