Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Rules are processed in order. Messages being sent to the BRMS log are compared against each rule, and a determination is made whether to send the message to the external message queue.

For example:

...

Examples

Example 1 - Send all BRM messages except BRM1097,and all CPI messages except CPI0307

...

to message queue QSYS/QSYSOPR

Use the following set of commands:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*MSGQ' 'QSYS' 'QSYSOPR')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '1' 'INC' 'BRM')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '2' '*EXC' 'BRM1097')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '3' 'INC' 'CPI')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '4' '*EXC' 'CPI0307')

Use the view command to verify the setup:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*DISPLAY')

Example 1 Output:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*DISPLAY')

MESSAGE QUEUE: QSYS/QSYSOPR.
1 *INC BRM*.
2 *EXC BRM1097.
3 *INC CPI*.
4 *EXC CPI0307.

...


Example 2 - Send all BRM messages except BRM1097, all CPI messages except CPI0307 and all other messages

...

to message queue QSYS/QSYSOPR

Use the following set of commands:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*MSGQ' 'QSYS' 'QSYSOPR')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '1' 'INC' 'BRM')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '2' '*EXC' 'BRM1097')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '3' 'INC' 'CPI')
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '4' '*EXC' 'CPI0307')

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' '5' '*INC' '*ALL')

Use the view command to verify the setup:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*DISPLAY')

Example 2 Output:

CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*DISPLAY')

MESSAGE QUEUE: QSYS/QSYSOPR.
1 *INC BRM*.
2 *EXC BRM1097.
3 *INC CPI*.
4 *EXC CPI0307.
5 *INC *ALL

...