This question would be better asked on the CMS-Pipelines forum, but...

First, I don't think you want to use pipmod stop.  It would end
asynchronous stages, but you aren't running any.
As Doug says, you need to utilize the secondary output of CP.  Try
something like:
 Pipe (end ?) a:fanin | b:gate ? literal C000 C001 C002 C003 | split | b: |
Spec /VARY OFF/ n w1 nw | c:cp | cons ? c: | Nfind 0| copy | a:

Note that CP doesn't automatically uppercase its input, so if you're
feeding it mixed case you'll probably get an error right off.  If you can't
depend on the case of your input, place a translate (XLATE) stage in front
of the CP stage.
--
Mike Harding
z/VM System Support

mhard...@us.ibm.com
mike.b.hard...@kp.org
mikehard...@mindless.com
(925) 926-3179 (w)
(925) 457-9183 (c)
IM: VMBearDad (AIM),  mbhcpcvt (Y!)


The IBM z/VM Operating System <IBMVM@LISTSERV.UARK.EDU> wrote on 11/04/2009
11:27:12 AM:

> From: Doug Breneman/Endicott/i...@ibmus
> To: IBMVM@LISTSERV.UARK.EDU
> Date: 11/04/2009 11:28 AM
> Subject: Re: PIPE question about RC
> Sent by: The IBM z/VM Operating System <IBMVM@LISTSERV.UARK.EDU>
>
> Alain,
> You can use another stream and put a label on the CP stage. The
> return codes will go to the secondary stream. The following is just
> an example and not really useful:
>
> pipe (end ?) LITERAL QUERY TIME|DUP 3|A:CP|CONS?A:|SPEC /RC=/ 1 1-* NW|
CONS
> TIME IS 14:24:24 EST WEDNESDAY 11/04/09
> CONNECT= 05:46:41 VIRTCPU= 000:01.24 TOTCPU= 000:04.53
> RC= 0
> TIME IS 14:24:24 EST WEDNESDAY 11/04/09
> CONNECT= 05:46:41 VIRTCPU= 000:01.24 TOTCPU= 000:04.53
> RC= 0
> TIME IS 14:24:24 EST WEDNESDAY 11/04/09
> CONNECT= 05:46:41 VIRTCPU= 000:01.24 TOTCPU= 000:04.53
> RC= 0
> TIME IS 14:24:24 EST WEDNESDAY 11/04/09
> CONNECT= 05:46:41 VIRTCPU= 000:01.24 TOTCPU= 000:04.53
> RC= 0
> Ready;
>
> You can see that the secondary output stream contains all of the
> return codes from the CP commands. I hope this helps.
> Doug Breneman z/VM Development IBM Endicott
>
> [image removed] Alain Benveniste ---11/04/2009 02:15:40 PM---Is it
> possible to test the return code for EACH CP command as partially
> shown above :

>
> Is it possible to test the return code for EACH CP command as partially
> shown above :
>
> "PIPE LITERAL C000 c001 c002 c003 ! split ! specs /vary off/ 1 W1 NW ! CP
> !
> LITERAL RC ! CONSOLE"
>
> and if a RC/=0 straight to execute a PIPMOD STOP to live the PIPE ?
>
>
> I have the default PIPE environment.
>
> Alain Benveniste
>

Reply via email to