Tom, if the "xcmd" stage has a secondary output stream defined,
Pipelines will write the return code from the cp/cms command there.

Does that help?

DJ

On 02/07/2011 02:09 PM, Tom Huegel wrote:
> I am trying to replace a WAKEUP (IUCVMSG routine with a PIPE STARMSG.
> I have the following snippet that seems to work fine except for capturing
> the return code from the cp/cms command (XCMD).
> 
> Is there a simple fix to this? - Thanks
> 
> /*
> */
> 
> trace
> o
> cp set msg
> iucv
> arg
> xcmd
> 'pipe (endchar
> ?)',
>           '| starmsg
> ',
> 
> xcmd,
>           '| specs 9-16 1 17-* strip nw x15
> nw',
>           '| stem linecount.',           /* save results
> */
>           '?',                           /* start of second pipeline
> */
>           'literal +01',                 /* Delay time
> */
>           '| delay',                     /* Delay
> */
>           '| pipestop'                   /* Stop
> */
> say
> rc
> 
> cp set msg
> on
> 'pipe stem linecount. |
> console'
> exit
> 

-- 
Dave Jones
V/Soft Software
www.vsoft-software.com
Houston, TX
281.578.7544

Reply via email to