Not to double-nitpipck :)
cp q disk                       
HCPCQV003E Invalid option - DISK
=> I71131 at VMT1 (00003);      

-----Original Message-----
From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On
Behalf Of Alan Altmark
Sent: Thursday, March 13, 2008 2:35 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: PIPE Help (please)

On Thursday, 03/13/2008 at 02:29 EDT, "Said, Nick" <[EMAIL PROTECTED]> 
wrote:
> Here's a quick and dirty one I've been using for years. No thinking if
> it is a cms or cp command:
> 
> /*pipef*/
> arg cmd
> '  Pipe cp 'cmd         ,
> '| > $pipef$ $temp$ a   '
> If rc /= 0 Then
> do
> '  Pipe cms 'cmd         ,
> '| > $pipef$ $temp$ a   '
> end
> 'Xedit $pipef$ $temp$ a '
> 'Erase $pipef$ $temp$ a '

Not to nitpick, but you need to invoke the PIPE CMS *only* if the return

code from the PIPE CP is 1 (unknown cp command).

Alan Altmark
z/VM Development
IBM Endicott

Reply via email to