I also prefer QCMDEXC over system().
I've seen programs where system() was used and if the CL command fails the
programmer either ignores the return value or sends the message: "CL command
This makes a lot of fun especially if something happens on a customer's
machine without debuggable program versions.
Mit freundlichen Grüßen / Best regards
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Barbara Morris
Gesendet: Saturday, 09.2 2013 02:05
Betreff: Re: How to Find what module a procedure is located in
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
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
With your wrapper, you could call QCMDEXC or QCAPCMD instead.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l