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
From: Alain Benveniste <[email protected]>
To: [email protected]
Date: 11/04/2009 02:15 PM
Subject: PIPE question about RC
Sent by: The IBM z/VM Operating System <[email protected]>
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