How to write a message from NCL to JES Joblog but not to SYSLOG

Document ID : KB000122901
Last Modified Date : 12/12/2018
Show Technical Document Details
Introduction:
The NCL verb &WRITE LOG=YES DATA=... can be used to write the text after DATA= into the Activity Log. You can use the verb &WTO to write data into the JES Message Log JESMSGLG and the SYSLOG.
Instructions:
When you use
&WTO MCSFLAG=HRDCPY DATA=...
you write the test after DATA= into the JESMSGLG and the SYSLOG
When you use 
&WTO ROUTCDE=11 DATA=...
you write only into the JESLOG but not into the SYSLOG. This is true if the HARDCOPY receives NOT all Routing Codes. To find out, issue command SYSCMD D CONSOLES from OCS and check the first lines of the response:

syscmd d consoles
 N86510 COMMAND PASSED TO OPERATING SYSTEM
 04:39:17            CNZ4100I 04.39.17 CONSOLE DISPLAY 490
  CONSOLES MATCHING COMMAND: D CONSOLES
  MSG:CURR=0    LIM=9999 RPLY:CURR=38   LIM=200   SYS=CA31     PFK=S0
  HARDCOPY  LOG=(SYSLOG,OPERLOG)  CMDLEVEL=CMDS
        ROUT=(ALL)
 ...


If there is ROUT=(1-10,12-128) instead then messages using Routing Code 11 are not forwarded to the SYSLOG and the &WTO does only write into the JESJOBLG, not into the SYSLOG.