CMSTSO Pipelines Discussion List <[email protected]> wrote on
07/20/2015 11:30:18 AM:

> From: "Gentry, Steve" <[email protected]>
> To: [email protected]
> Date: 07/20/2015 11:30 AM
> Subject: Re: Capturing output from a pipe
> Sent by: CMSTSO Pipelines Discussion List <[email protected]>
>
> Correct, sort of.  I want to programmatically capture those
> messages.  I just did a cut-n-paste from the console log to the
> email to show as an example.

Take a look then at Kris Buelens' MAILIT package on the download page. Once
you capture you error messages in a stem or file using previously-described
methods, MAILIT makes it easy then to post (as in mail) them.
A simplified (untested) shell exec would look something like:

Address Command
'PIPE Command EXEC <your program & parameters>|stem errors.'
If errors.0>0 then 'EXEC MAILIT to <recipient> subject(errors from????)
stem errors.',
   'preface(Here are the errors reported during the execution of ????' ||
'1515'x || ')'
--
Mike Harding
z/VM System Support
/sp

Reply via email to