|
> I am using the "system" function to execute a CL command from > a C program. > This works fine. The problem is when the command fails I get > no message in > the joblog. I know I can monitor the results using a return > variable but > what I need is for the message to appear in the joblog. What > am I doing > wrong? don't use system() ! If you search the archives this has been asked before. My response is to use QCAPCMD instead of system() when you *are* interested in monitoring the messages from a executed command. --phil BTW: there is a C400 list too...
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.