<[EMAIL PROTECTED]> wrote on Thu, 28 Jul 2005 09:04:08 +0200

> We are trying to find a way to capture results from our
> nigthly batch runs to a log file. That log file is then
> read to trigger warnings or critical alarms.
>
> We'd like to use the RETURNING clause in the EXECUTE statement
> to capture output from the batch programs.

You might want to use the CAPTURING clause as well, e.g.

EXECUTE COMMAND CAPTURING CRT.TEXT RETURNING ERR.CODES

The CAPTURING clause will return anything that would normally be sent to
the terminal, including the human-readable error messages.  Under UniData,
the RETURNING clause includes any spooler entry numbers created as well as
the error codes.

--Tom Pellitieri
  Toledo, Ohio
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to