OPS/REXX Built-in Functions › OPSLOG Function
OPSLOG Function
The OPSLOG function provides the ability to extract messages from OPSLOG using filtering criteria. The function returns one or more messages from the OPSLOG data area to the external data queue, REXX or CLIST variables or the terminal.
Note: Except for cross system OPSLOG retrieval, you may use the OPSLOG function in AOF rules.
This function has two formats:
- The basic OPS/REXX function multi-argument format provides simple message extraction by message time or number from the active OPSLOG with only a single message id filter. Output is always routed to the external data queue and consists of only the message text.
- The expanded REXX function single argument format provides keyword syntax operands that allow specification of multiple filters with multiple values. The capabilities provided are comparable to the OPSVIEW OPSLOG profile and display commands. Different OPSLOG names and cross-system operation are also supported. Output consists of the message text preceded by keyword selected message attribute fields. This REXX function format can also be invoked as a TSO/E REXX function or command processor.