|
I believe you are thinking of the exception data written into the program
status data structure. I do not think that gets updated unless there is
an error condition. system won't update this either way, only QCMDEXC
does, and again, I only think so if there is an error. I was checking the
exception message id for errors upon execution of QCMDEXC. Big mistake.
One needs to check %error first, and then the exception message. Because
if it errors once, it doesn't clear that part of the data structure when
it goes successfully. So QCMDEXC becomes
callp(e) qcmdexc(%CmdVarLen:%len(CmdVarLen));
if %error;
select;
when ExcpMsg=...;
other;
EndSl;
EndIf;
or
Select;
When not %error;
When ExcpMsg=...;
Other;
EndSl;
What would get returned from QCAPCMD?
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.