× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed04-Apr-2011 13:47 , Rusling, John wrote:
The DFTPGM/CHGMSGD thing, is this causing a program to be called
whenever a certain message is received/intercepted?

The DFTPGM() is invoked only when that specific message [the MSGID() named on CHGMSGD or ADDMSGD] is issued as an escape message, and when that exception was considered to be an "unmonitored escape message"; i.e. when "this message is sent as an escape message to a program that is not monitoring for it."

As well the *PGM coded and then specified on the DFTPGM() can perform logic which effects nothing more than a RETURN if necessary conditions are not in effect for which further processing is required. So for example, if the DFTPGM() should not perform the WRKOBJLCK except when the job name is 'GENASNS', the opening actions and logic for the CLP as DFTPGM() might be:

pgm /* parms for a DftPgm? */
/* declarative section */
...
/* start of program processing */
rtvjoba job(&jobnam)
if cond(&jobnam *ne 'GENASNS') then(goto justexit)
/* other logic and actions below if no early exit */
...
justexit:
return
endpgm

Using the OVRMSGF after the CRTMSGF, MRGMSGF, and CHGMSGD for the original testing further ensures only the test environment is affected until the CHGMSGD is performed against the actual message file that will be used by some select [per OVRMSGF] or all other jobs on the system.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.