|
I was actually avoiding putting a MONMSG on STRDBG in case it
errored due to some reason other than debug already being active.
Can you think of any other reasons why STRDBG would fail?
Should I not be concerned with that?
CRPence on Tuesday, March 05, 2013 3:51 PM wrote:
<<SNIP>> This means that STRDBG also fails <ed: when the job
issuing the STRDBG is being serviced by another job>, but instead
of due to mode-checking by the command analyzer [ed: per MODE() on
CRTCMD], due to the debugger detecting that the job is being
serviced by another job.
To learn that the job is being serviced is straightforward; using
the aforementioned ability of the STRDBG to detect and diagnose the
condition:
CPF1999 on STRDBG preceded by the diagnostic CPF1937 "STRDBG is not
allowed because job is being serviced." is how I checked this for
the /same/ means to prevent updating production files in my job; no
PGM() was specified for debug however. I actually had created a CL
command called Disallow Update Production DLWUPDPROD that did the
STRDBG, monitored for the failure, verified the expected diagnostic
for the monitored failure and then cleared the messages, or
effected the Start Debug with UPDPROD(*NO), and then returned, or
determined that the condition was not for the expected diagnostic
and sent the diagnostic as the escape to the invoker to know
something unexpected occurred.
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.