|
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
procedure.
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.