Filter with multiple levels (shown as pseudocode)
This example shows a filter with multiple levels, and then presents the same filter as pseudocode, to help clarify how the filter is processed.
Filter
Log Code Description Level Conditions
ALL Global Criteria 1 LSN GE 0000000000001000
LSN LE 0000000000008000
IMS 01 IMS Message 2 MSGXSTXT(*) EQ 'UNAUTHORIZED'
IMS 03 IMS Message 2 MSGXSTXT(*) EQ 'UNAUTHORIZED'
IMS 50 Database Update 2 DATABASE EQ 'ACCOUNTS'Equivalent pseudocode
For all log codes:
If (LSN >= 0000000000001000) AND (LSN <= 0000000000008000) then
Continue to level 2
else
Bypass record
For log code 01:
If message text contains the string 'UNAUTHORIZED' then
Process record
For log code 03:
If message text contains the string 'UNAUTHORIZED' then
Process record
For log code 50:
If database name is 'ACCOUNTS' then
Process record
Otherwise:
Bypass record