Anmelden

View Full Version : Nachricht ins BRMS-Log senden?



Chris.jan
17-07-15, 09:59
Ich meine ich habd as schon mal hingekriegt, daß eine Nachricht auch in DSPLOGBRM auftaucht. Eben das möchte ich nochmal hinkriegen, aber mir fällt es nicht mehr ein.

BTW, wie/wo ist definiert, welche Nachrichten von BRMS an QSYSOPR gehen und welche von QSYSOPR ins BRMSLOG?

Chris.jan
17-07-15, 10:20
Ich habs wieder gefunden.... Das Kommando heißt QBRM/ZRMLOG ;-)
Wobei meine beiden anderen Fragen natürlich noch offen sind ^^ :-)

TARASIK
17-07-15, 13:34
Send BRMS Messages to Additional Message Queue
Technote (troubleshooting)

Problem(Abstract)

This feature allows the user to identify which messages to be sent to a specific message queue when BRMS adds the message to the BRMS log (DSPLOGBRM).
Resolving the problem

The following PTFs have added the ability to send specific BRMS messages to an additional message queue:

v5r3m0 SI33971
v5r4m0 SI33974
v6r1m0 SI33975


This feature allows the user to identify which messages are to be sent to a specific message queue when BRMS adds the message to the BRMS log ( DSPLOGBRM).

To view the current settings:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*DISPLAY')

To set the message queue:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*MSGQ' 'libname' 'objname')

For example:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*MSGQ' 'QSYS' 'QSYSOPR')

To insert a rule:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*INSERT' 'xxx' 'yyyy' 'zzzzzzz')

where:
xxx - position (1, 2, 35, etc) to insert the rule
yyyy - *INC include the message, *EXC exclude the message
zzzzzzz - message ID, generic message ID or *ALL to be included or excluded

To replace a rule:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*REPLACE' 'xxx' 'yyyy' 'zzzzzzz')

where:
xxx - position (1, 2, 35, etc) to replace the rule
yyyy - *INC include the message, *EXC exclude the message
zzzzzzz - message ID, generic message ID or *ALL to be included or excluded

To remove a rule:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*REMOVE' 'xxx')

where:
xxx - position (1, 2, 35, etc) to replace the rule

To clear all rules:
CALL QBRM/Q1AOLD PARM('LOGMSGEXT ' '*CLEAR')

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:
The following rules indicate that all BRM messages except BRM1097, and all CPI messages except CPI0307, will be sent to message queue QSYS/QSYSOPR:

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

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

The following rules indicate that all BRM messages except BRM1097, all CPI messages except CPI0307 and all other messages, will be sent to message queue QSYS/QSYSOPR:

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

Additional notes:

Generic rules can be created. For example, BRM*, *ALL, CPF9* etc are all valid generic rules.
Anything after the '*' is ignored, i.e. CP*1000 is the same as CP*
All messages sent to the specified message queue will be sent as *INFO messages.
If the specified message queue is being saved while BRMS is attempting to send a message to it, the backup may fail.
User profile QBRMS must have authority to send messages to the specified message queue
Messages logged in the additional message queue will be sent from program Q1ARALG when using the above method.
WRKPCYBRM *SYS opt 6, to change notification controls, can also be used to used to send DSPLOGBRM messages of or exceeding the specified message severity to the notification message queue listed. Messages logged in the notification message queue for meeting the message severity are sent from program Q1ACALG.

Related information

BRMS Wiki: Send BRMS Messages to Additional Message Que

Xiaoguo3
26-07-15, 05:13
Sehr toll! Coole Informationen.







samsung galaxy s6 etui (http://www.hulle6.com/category-samsung-galaxy-s6-zubehoer-187.html)