Using the YKSETENV command
The following shows an example of defining a symbol when you do not want to output the CLI command-execution logs:
START YKSETENV,PARM='SYSLOG=NO'
The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to SYSLOG:
START YKSETENV,PARM='SYSLOG=YES'
The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to the console:
START YKSETENV,PARM='SYSLOG=CONSOLE'
Defining a system symbol in the IEASYMxx parmlib member
The following shows an example of defining a symbol when you do not want to output the CLI command-execution logs:
SYMDEF(&YKSYSLG='NO')
The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to SYSLOG:
SYMDEF(&YKSYSLG='YES')
The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to the console:
SYMDEF(&YKSYSLG='CONSOLE')
If &YKSYSLG is omitted, or if an incorrect value is specified, YES is assumed.
If you output a CLI command-execution log to the console, the log is output to the console by using ROUTCODE=11 (output as the YKZ910I message and the YKZ911I message). Therefore, include 11 in the ROUTCODE parameter of the CONSOLE statement or in the ROUTCODE parameter of the HARDCOPY statement in the CONSOLxx parmlib member.
Perform either of the following operations to change the ROUTCODE value for the CLI command-execution log (the YKZ910I message and the YKZ911I message) to a value other than 11:
- In MPFLSTxx, register USEREXIT that targets the YKZ910I message and the YKZ911I message. In the USEREXIT to be registered, change the ROUTCODE value for the YKZ910I message and the YKZ911I message from 11 to a different value (the value included in the ROUTCODE parameter in the CONSOLxx parmlib member).
- Use WTO/WTOR Message Processing Facility Installation Exit (IEAVMXIT) to change the ROUTCODE value for the YKZ910I message and the YKZ911I message from 11 to a different value (the value included in the ROUTCODE parameter in the CONSOLxx parmlib member).
For a sample exit routine (YKUSRXIT) that changes the ROUTCODE value of the YKZ910I message and the YKZ911I message, see the sample library provided by Business Continuity Manager.