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