I get the same results from the command line and from the exec.

Paul Feller
AIT Mainframe Technical Support

From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf 
Of Gentry, Stephen
Sent: Tuesday, July 14, 2009 7:11 AM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: NETSTAT and PIPES

Yes, that is what I'm trying to do and it works.  That is to say the pipe 
doesn't abend or fail.  What happens is I get different results when I run it 
from an  EXEC (with the PIPE command in it) vs. when I run it from the command 
line.
Steve

________________________________
From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf 
Of Feller, Paul
Sent: Monday, July 13, 2009 9:53 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: NETSTAT and PIPES

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:ib...@listserv.uark.edu] On Behalf 
Of Gentry, Stephen
Sent: Sunday, July 12, 2009 8:48 PM
To: IBMVM@LISTSERV.UARK.EDU
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

Reply via email to