On 2/8/2013 11:41 AM, Alan Campin wrote:
Better way to do executing a system command. Only need one parameter, the
command. Converts to a C string which is what the system api is expecting.
This is designed as a copy block. Include in d specs and at end of
Me, I don't like the system() API. If the command fails, it removes the
message from the joblog, and then you can only get the message ID, from
a field defined with import('_EXCP_MSGID'). The message ID isn't as
useful as the real message with its replacement values, especially if it
was an unexpected error.
With your wrapper, you could call QCMDEXC or QCAPCMD instead.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact