Problem:
The LOGEXIT allows to get control on messages before they are to be written into the Activity Log. If you want to write something into the Activity Log, &WRITE LOG=YES does not work. This Document explains what you can do instead.
Environment:
Netmaster for TCP/IP, Netmaster for SNA, SOLVE:Operations, SOLVE:Access
Cause:
Using &WRITE LOG=YES <message> or &WRITEL <message> in the Log exit will create message N10101 COMMAND &WRITE NOT RECOGNIZED but does not write into the Activity log.
You cannot use &WRITE LOG=YES or &WRITEL from within the Log exit. The reason for that is that the Log exit is already executed by Background user BLOG. That user does not have a real OCS-Window where he could write something, therefore you would see message "N10101 COMMAND &WRITE NOT RECOGNIZED" in the Activity Log when using &WRITE. Instead, you need to use the SUBMIT-Command as follows (the dash '-' in front of the SUBMIT avoids message "L START SUBMIT BLOG CMD=&WRITE DATA=<message>" to appear in the OCS):
-SUBMIT BLOG LOG DATA=<message>
or
-SUBMIT BSYS LOG DATA=<message>
This will write <message> into the Activity log in the form:
===> LOG ENTRY: <message>