List of MainView AutoOPERATOR-supplied EVENT variables


EVENT variables are variables that are used by the Rule Processor application and exist for the duration of the event.

EVENT variables consist of

  • MainView AutoOPERATOR-supplied variables
  • WORDxxx variables, where xxx represents a number (for example, &WORD4)

Many of these variables are also be available for use by MainView AutoOPERATOR EXECs.

For more information about variables and MainView AutoOPERATOR EXECs, see the variables discussion in the MainView AutoOPERATOR Advanced Automation Guide.

When creating Rules for the ALRT event type, see List-of-variables-for-ALRT-initiated-Rules for additional available variables.

The following table shows all the EVENT variables supplied by MainView AutoOPERATOR.

MainView AutoOPERATOR-supplied EVENT variables

Variable name

Description

&IMFACCTG

contains all accounting fields for a particular event

The accounting field values are separated by blanks. Maximum length is 142.

&IMFALGID

contains a 16-character alphanumeric Alarm Group ID created by MainView Alarm Manager

&IMFALID

contains the alarm ID associated with an alarm created by MainView Alarm Manager

&IMFALPRI

contains the user-assigned priority of the alarm

Possible values are

  • CRITICAL
  • MAJOR
  • MINOR
  • WARNING
  • INFORMATIONAL
  • CLEARNING

&IMFALQID

contains the name of the queue to which the alarm was assigned

&IMFALRM

contains either Y (sound an alarm) or N (do not an sound alarm)

&IMFALUVx 

contains the values specified for the fields User Values 1 through User Values 8 where x can be 1 through 8

The values can be 1 to 16 characters in length, and if not specified, the value is null.   

This variable is valid only for ALRM-initiated Rules.

&IMFAREID

contains a 1-character identifier for the area on the console panel that displays a multiline WTO message

Possible values are the letters A through K, Z.

This variable is valid only for the MSG-initiated and DB2-initiated Rules.

&IMFAUTH

contains Y if the message was issued from an authorized program

&IMFCART

contains an 8-character Command and Response Token (CART) associated with an MVS command

&IMFCARTX

contains the &IMFCART variable in 16-character printable EBCDIC format

&IMFCIJOB

contains the values for the &IMFCIJOB variable for different event types are as follows:

  • ALRM: contains the same value as the IMFTHTGT variable, which is the name of the address space that causes the MainView Alarm to be generated
  • ALRT: contains the name of the address space that issues the MainView AutoOPERATOR ALERT (which is also the address space where the Rule fires).
  • CICS: contains the CICS address space name
  • CMD: contains the address space that issues the MVS command
  • DB2: contains the name of the address space issuing the WTOR
  • EXT: contains the name of the address space where the Rule fires
  • HWTO: contains the early or interim WTOs
  • IMP: contains the IMS OM address space name
  • IMS: contains the IMS address space name
  • JRNL: contains the name of the MainView AutoOPERATOR PAS address space
  • MQS: contains the 4-character Queue Manager name followed by MSTR 
  • MSG: contains the name of the address space issuing the WTOR
  • NVC: contains the NetView address space name
  • NVM: contains the NetView address space name
  • Time: contains the name of the MainView AutoOPERATOR PAS address space
  • VAR: contains the name of the MainView AutoOPERATOR PAS address space

&IMFCLOCK

contains the number derived from the first word of the MVS Time-of-Day clock

The increment value is approximately once every 1.05 seconds.Each Rule that fires has its own copy of the &IMFCLOCK variable, but the variable is not passed to Rule-initiated EXECs.

You can use this variable to help construct names and values that are unique for the life of this IPL. For example, you can combine the IMFCLOCK and IMFRLID variables to create a unique variable to create a unique ALERT key. On the Alert Action(s) I panel in the Rule Processor, specify

Key ===> &IMFRLID::&IMFCLOCK

&IMFCNTXT

contains the name of the context of the alarm

&IMFCOLOR

contains the value of the message color as it was modified by the (Message Processing Facility (MPF) or a subsystem in the subsystem interface (SSI); valid values are as follows: RED, BLUE, PINK, GREEN, TURQUOISE, YELLOW, WHITE

If the message color is not modified, the value is blank.

&IMFCONNM

contains the console name to which the WTO was issued

Valid only for MVS SP4 and above.

&IMFCONNM may be used to identify the origin of an MVS command. The contents of the variable (by origin) are

  • Origin: IMFCONNM Value
  • Rule: Internal
  • SDSF: TSO user ID that issued the command
  • Console: Console Name where the command was issued

&IMFCSMLU

contains the LU name for SMCS consoles

&IMFCSSOW

contains the eight-character owner ID for subsystem consoles

&IMFCSTYP

contains the console subtype

If the Console Type resolves to Special (IMFCTYPE=P), IMFCSTYP resolves to one of the following values:

  • INTERNAL
  • INSTREAM
  • UNKNOWN
  • JES3

&IMFCTYPE

contains the type of console; one of the following possible values:

M: Command or WTO was issued from or to an MCS console

S: SMCS console

E: EMCS console

U: Subsystem console

P: Special (see definition for the IMFCSTYP variable)

&IMFDATE

contains the date when the message was issued in the format that is specified on the IMFDATE parameter in BBPARM member AAOPRM00

The following list shows valid formats and an example of each:

  • YYYY/MM/DD; 2050/10/23
  • YYYYMMDD; 20501023
  • DD/MM/YYYY; 23/10/2050
  • DDMMYYYY; 23102050
  • MMDDYYYY; 10232050
  • MM/DD/YYYY; 10/23/2050
  • MMMDDYYYY; OCT232050
  • DDMMMYYYY; 23OCT2050

&IMFDAY

contains the three-character day of the week: MON, TUE, WED, THU, FRI, SAT, SUN

&IMFDDNAM

contains the DDNAME specified by the user to generate an external events (EXT event type)

EXT events are generated by using the SUBSYS= parameter on a DD statement in JCL. For more information about EXT events, see EXT.

&IMFDOMID

contains the DOM ID associated with a WTO that caused a Rule to fire

&IMFETYPE

contains the event type that caused the Rule to fire

If a Rule schedules an EXEC, IMFETYPE contains the value from the Rule that scheduled the EXEC. Possible values for IMFETYPE are

  • ALRM
  • ALRT
  • BRC
  • CICS
  • CMD
  • DB2
  • EOM
  • EOS
  • EXT
  • HWTO
  • IMP
  • IMS
  • JRNL
  • MQS
  • MSG
  • NVC
  • NVM
  • TIME
  • TLM
  • VAR

For more information about these event types, refer to Events.

&IMFEVALP

contains the evaluation policy for the Rule

The contents of this variable are updated after each qualifying rule is evaluated. This includes all conventional Rules and all Rules that are part of a chained Rule group (CRG). You can use the IMFEVALP variable in a Rule like any other event variable and will be passed to EXECs like any other event variable. Valid values are:

  • N/A: The Rule is not part of a CRG
  • FIRST: The Rule is the first rule in a CRG.
  • FIRED: The Rule has an Evaluation Policy of Fired.
  • NOTFIRED: The Rule has an Evaluation Policy of NotFired.

&IMFEVALR

contains the evaluation result for the Rule

The contents of this variable are updated after each qualifying rule is evaluated. This includes all conventional Rules and all Rules that are part of a chained Rule group (CRG). You can use the IMFEVALP variable in a Rule like any other event variable and will be passed to EXECs like any other event variable. Valid values are:

  • N/A: The Rule is not part of a CRG
  • FIRST: The Rule is the first rule in a CRG.
  • FIRED: The last Rule that was evaluated by the Rules engine fired.
  • NOTFIRED: The last Rule that was evaluated by the Rules engine did not fire.

&IMFEVFRD

contains the number of Rules that have fired for a specific event

&IMFEXEID

when the IMFJRNLT variable is EXEC, contains the EXEC identifier where the message originated

&IMFEXENM

when the IMFJRNLT variable is EXEC, contains the EXEC name where the message originated 

The EXEC identified is the EXEC that scheduled the start of the EXEC thread (outermost EXEC).

&IMFEXITP

contains the exit policy for the Rule

The contents of this variable are updated after each qualifying rule is evaluated. This includes all conventional Rules and all Rules that are part of a chained Rule group (CRG). You can use the IMFEVALP variable in a Rule like any other event variable and will be passed to EXECs like any other event variable. Valid values are:

  • N/A: The Rule is not part of a CRG
  • CONTINUE: The exit policy for this Rule is Continue.
  • FIRED: The exit policy for this Rule is set to Fired.
  • NOTFIRED: The exit policy for this Rule is set to NotFired.

&IMFGROUP

contains the IBM RACF group ID for the address space that issued the event

The group ID is taken from the GROUP= parameter on the job card.

For commands issued from the Console address space, the value for IMFGROUP is derived from the RACF RUTOKEN.

&IMFHILIT

contains the value of the message highlight level as it was modified by MPF or a subsystem in the SSI; valid values are as follows: NONE, BLINKING, REVERSE, UNDERLINE

If the message highlight level is not modified, the value is blank. A value NONE means the message was issued with no highlighting.

&IMFIMTYP

contains a two-character value describing the type of IMS event

Valid value for this variable is RE; RE means that the event is a command response to an IMS command issued from an EXEC with response. This value can be used to prevent automatic logging of the IMS command response to the Journal by the IMS Generic (or similar) Rule.

Specifying IMFIMTYP NE RE on the Variable Dependencies panel of an IMS event type Rule causes the Rule not to fire for responses to IMS command that are returned to and processed by an EXEC. Eliminating unnecessary logging to the Journal will reduce the possibility of out-of-storage problems and loss of automation during periods when MainView AutoOPERATOR is processing very large number of IMS response segments.

&IMFINTEN

contains the value of the message brightness as it was modified by MPF or a subsystem in SSI; valid values are as follows: HIGH or NORMAL

If the message brightness is not modified, the value is blank.

&IMFJBCOR

contains the 0 to 64-character job correlator token

This variable is valid only when running on IBM z/OS Version 2.1 or later, where its length will be 32 to 64 characters. For versions earlier than 2.1, this variable contains a NULL value (length = 0).

&IMFJCAN

indicates if the job is canceled: Y means the job is canceled, N means the job is not canceled

The variable is valid only for the EOJ event.

&IMFJCLAS

contains the job class from the job card of the batch job that has generated the message.

&IMFJNUM

contains the JES job number of the job, STC, or TSU that issued the message

It is a fixed length five-digit or a variable length value depending on the setting of the IMFJNUM option in member AAOPRMxx. IMFJNUM can also contain blanks (one or five characters as appropriate) for WTOs that are issued by non-JES tasks, such as a STC started under MSTR.

The default setting is IMFJNUM=V.

When IMFJNUM=V (the default setting) and the job number is greater than 99,999 (for example, T0100000, S0999999, etc.) are encountered, IMFJNUM will be null (zero length).

&IMFJRNLT     

contains the type of JRNL event

The value returned is EXEC when the message originates from an EXEC. 

&IMFJSACT

contains accounting information from the EXEC JCL statement

&IMFJSCC

contains the condition code

Values can be S0xxx (system abend), Unnnn (user abend), FLUSH (steps were flushed), nnnn (numeric condition code).

&IMFJSCPU

contains the CPU time used by this job step, in hundredths of seconds

Value is zero (0) for EOJ.

&IMFJSNUM

contains sequential number of this job step

Value is zero (0) for EOJ.

&IMFJSPGM

contains EXEC PGM= program name for this job step

This variable contains the fixed value N/A for end-of-job (EOJ) and end-of-memory or address space termination (EOM) events.

&IMFJSTEP

contains the job step name

Value is blank for EOJ.

&IMFJTCPU

contains the total amount of CPU time used by this job, in hundredths of seconds

&IMFJTYPE

contains the type of job issuing message:

J – Batch Job

T – TSO User

S – Started Task

&IMFLFIRE

contains the number of seconds (0 – 9999999) since this Rule last fired

0 seconds means the Rule last fired less than 1 second ago.  

The maximum value of 9,999,999 seconds (about 115 days) is set when any of these conditions exist 

  • The Rule has never fired 
  • The Rule has just been Enabled 
  • The last fired time exceeds the maximum value

This variable is not valid for the HWTO, NVC, NVM, and TIME event types.

&IMFLPROD

contains the name of the product associated with the alarm

&IMFLTYPE

contains the literal value associated with the alarm; possible values can be START or STOP

&IMFLUSER

contains the user-specified user ID associated with the alarm

&IMFMPFAU

contains the value of the AUTO parameter in SYS1.PARMLIB member MPFLSTxx

The value could be YES, NO, or an 8-character token set by the user in SYS1.PARMLIB

Refer to the chapter 'Implementing support for MPF' in the MainView AutoOPERATOR Customization Guide for more information about MPF.

&IMFMPFSP

contains the value of the SUP parameter in SYS1.PARMLIB member MPFLSTxx

The value could be either YES or NO.

Refer to the chapter 'Implementing support for MPF' in the MainView AutoOPERATOR Customization Guide for more information about MPF.

&IMFMSGID

contains the first word of the message (up to 16 characters) with any leading plus sign (+) that might be present stripped out of the word

For example, for the following message:

+DFHSI1500 TYSPCICS CICS startup is in progress

The value of the &IMFMSGID variable is DFHSI1500

Valid only for the MSG and DB2 event types.

&IMFMSTYP

contains the two-character variable for the message type

This variable is only for the CMD and MSG event types. Valid values for the first character can be

N: a regular WTO

W: a regular WTOR

M: a major line of a multiline WTO (MLWTO)

Valid values for the second character can be

C: command

R: command response

&IMFNOL

contains the number of LINE variables in the LOCAL pool

Output from multiline messages is placed in LOCAL variables, LINE1 through LINEnnnn.

&IMFNUSER

contains the NetView user ID assigned to this event

&IMFOASID

contains the originating Address Space ID (ASID) of the message

For IMFEOM, it is set to the ASID that is being terminated.

&IMFODATE

contains the date when the message was issued in Juilan date format

&IMFOJOB

for WTOs: contains the job or Started Task that issued the WTO

for CICS messages: CICS region name that the subsystem issued the message for, which is useful when monitoring multiple CICS regions with one BBI-SS PAS.

for DB2 messages: DB2 region name that the subsystem issued the message for, which is useful when monitoring multiple DB2 regions with one BBI-SS PAS.

for IMS messages:

  • IMS job name for IMS MTO messages
  • IMS job name for commands (and their responses) entered from MainView AutoOPERATOR
  • originating LTERM for commands (and their responses) entered from an IMS LTERM

for Journal messages issued by an EXEC: user ID of the person who scheduled the EXEC

&IMFOMCLT

contains the name of the client (IMSplex member) where IMS Type-2 command originated.

Valid only for IMP events.

&IMFOMRTE

contains up to 30 characters of the ROUTE list of the IMS Type-2 command.

Valid only for IMP events.

The ROUTE list is a list of client names separated by commas. The ROUTE list can contain a single asterisk as a client name, which routes to all clients.

&IMFOMUSR

contains user ID of application where the IMS Type-2 command originated.

Valid only for IMP events.

&IMFOQID

contains the CICS transient data queue name if source of message is CICSTD

&IMFORGN

contains the possible event types and their descriptions are:

  • ALRM: name of issuer
  • ALRT: MainView AutoOPERATOR job name issuing the ALERT
  • BRC: PAS subsystem ID
  • CICS: CICS address space job name
  • CMD: job name of issuer
  • DB2: DB2 address space job name
  • EXT: job name of issuer
  • HWTO: job name of issuer
  • IMP: contains the IMS OM address space name
  • IMS CMD: IMS LTERM name
  • IMS MSG: IMS region name
  • JRNL: job name on whose behalf the Journal message was issued
  • MSG: job name of issuer
  • NVC: job name of issuer
  • NVM: job name of issuer
  • TIME: MainView AutoOPERATOR job name

&IMFORGSS

contains the BBI Subsystem ID of the BBI-SS PAS

&IMFOTIME

contains the time when the message was issued

Valid only for messages captured through the Rule Processor.

The format is

HH.MM.SS

for MSG event types. For all other event types, the format is

HH:MM:SS

&IMFOUTS

contains the value of the Origin Unix Timestamp

This value is the number of seconds since January 1, 1970. For example, 1133978880 = 12/07/05 13:08        

&IMFPCMD

contains the PCMD associated with the alarm

&IMFPLUS

contains Y if the message ID text begins with a plus sign (+)

&IMFREPLY

contains the Reply ID of the WTOR message

&IMFRETAIN

contains Y if the message is marked as retain (and it is not automatically scrolled off the MVS Console) and is retained in the Automatic Message Retention Facility (AMRF)

&IMFRLFRD

contains the number of times a Rule was fired

&IMFRLID

contains the Rule identifier

&IMFRLMAT

contains the number of times the Rules search criteria was matched

&IMFRLSET

contains the name of the Rule Set the Rule belongs to

&IMFRLSTA

contains the Rule status:

TEST: indicates the Rule is in a TEST state.

ACTIVE: indicates the Rule is in ACTIVE state.

&IMFRUSER

contains the user ID from the USER= parameter on the job card

For commands issued from the Console address space, the value for IMFRUSER is derived from the RACF RUTOKEN.

&IMFSCENV

contains a 1 to 16-character Workload Manager schedule environment name for the batch job that produced the event 

The scheduling environment name contains alphanumeric characters, national characters ($, @, #) and underscore (_).

This variable is available only for the MSG event type.

&IMFSCOPE

contains the name of the scope associated with the alarm

&IMFSRC

contains the name of the NetView exit that produced the event

&IMFSTEP

contains the step name that triggered the Rule

&IMFSTOKN

contains the Address Space STOKEN name

This name is unique for the life of the IPL.

&IMFSUPR

contains Y if the message text is suppressed from the console

&IMFSYSID

contains the possible event types and their descriptions are:

  • ALRM: name of issuer
  • ALRT: MainView AutoOPERATOR job name issuing the ALERT
  • BRC: jobname of PAS
  • CICS: CICS address space job name
  • CMD: job name of issuer
  • DB2: DB2 address space job name
  • EXT: job name of issuer
  • HWTO: job name of issuer
  • IMP: contains the IMS OM address space name
  • IMS: when a Rule matches an IMC command issued from LTERM, IMS LTERM name
  • IMS: when a Rule matches an IMC message, IMS region name
  • JRNL: job name on whose behalf the Journal message was issued
  • MSG: job name of issuer
  • NVC: job name of issuer
  • NVM: job name of issuer
  • TIME: MainView AutoOPERATOR job name

&IMFTCPCT

contains the number of times this address space has already been extended by a Rule for CPU expired

&IMFTCPSC

contains the number of CPU seconds this address has already been extended by a Rule

&IMFTERMT

contains the type of address space termination; valid values are NORMAL or ABNORMAL

&IMFTEXT

message text that caused the EXEC to be scheduled

For CICS TD events, the maximum length for IMFTEXT can be up to 512 characters. For all other message types, IMFTEXT is 125 characters.

&IMFTHTGT

resolves to the address space name that causes the MainView alarm to be generated

&IMFTIME

contains the time when the message was issued in HH:MM:SS format

&IMFTOKEN

contains the token ID of the message. Same as hardcopy ID

Used to attach multiline WTO Minor/Major Lines.

&IMFTSNUM

contains the sequential step number

Note

The IMFSTEP variable is also populated.

&IMFTSSID

contains the subsystem ID (SSID) that selected the job

Possible values are as follows: JES2, JES3, ASCH (APPC), OMVS, STC, or TSO. The value can also be the jobname if none of these apply the jobname is less than 4 characters long.

&IMFTTLM

contains the type of expired time limit; valid values are as follows:

  • JCPU: job processor time limit expired
  • SCPU: step processor time limit expired
  • WAIT: Continuous Wait Time expired

&IMFTWTCT

contains the number of times this address space has already been extended by a Rule for Wait limit expired

&IMFTWTSC

contains the number of seconds this address has already been extended by a Rule for WAIT limit expired

&IMFVALUE

contains the value of a SHARED variable when an event type VAR Rule fires

&IMFVIEW

contains the name of the view associated with the alarm

&IMFXDESC

contains a two-character value that consists of the exact hexadecimal contents of the descriptor code field of the WQE (WQEDESCD) for a WTO

This variable allows the testing of specific bits in the descriptor code, by using the FN and FO operators on the Selection Criteria panel or the BITON() function on the Advanced Variable Dependency panel, to determine eligibility of the Rule to fire.

For example, if you want to Rule to fire when descriptor code 12 is used you could specify the following value on the Variables Dependency panel:

IMFXDESC_______________________ FO 0010___________________________

Or, you could specify the following value on the Advanced Variables Dependency panel:

BITON(&IMFXDESC,0010)

Either method causes the Rule to fire.

&IMFXOJOB

contains the name of the original job or Started Task that requested the WTO to be issued by another address space

The contents of IMFXOJOB are only meaningful if the WTO is issued by another address space, otherwise its contents are identical to IMFOJOB.

&IMFXOJOB is valid only for MSG and JRNL type Rules.

When a JRNL event originates from a MainView Total Object Manager (TOM) log message, the &IMFXOJOB variable contains the TOMID of the TOM PAS that originated the message. To determine if a JRNL event originated from a local TOM PAS, use the Variable Dependencies (SV) panel in the Rules Processor to compare the IMFOJOB variable to IMFXOJOB (IMFOJOB EQ IMFXOJOB). If the values are equal, the message originated from the local TOM PAS.

&IMFXROUT

contains a 16-character value that consists of the exact hexadecimal contents of the routing code field of the WQE (WQEERC) for a WTO

This variable allows the testing of specific bits in the route code, by using the FN and FO operators on the Selection Criteria panel or the BITON() function on the Advanced Variable Dependency panel, to determine eligibility of the Rule to fire.

For example, if you want to Rule to fire when route codes 2 and 11 are used you could specify the following value on the Variables Dependency panel:

IMFXROUT___________________ FO 40200000000000000000000000000000___

Or, you could specify the following value on the Advanced Variables Dependency panel:

BITON(&IMFXROUT,4020)

Either method causes the Rule to fire.

&SYSDATE

contains the current date in the form month/day/year

&SYSTIME

contains the current time of day expressed as hh:mm:ss

WORDxxx

represents a number (for example, &WORD4)

These are variables created by the Rule Processor to represent the different words in the text of the event that fire a Rule. The variable &WORD3 should resolve to the third word of the text of the event. Word variables are delimited by blanks and commas in the text.

The message text used to return WORD variables is a maximum length of 512 for CICS TD messages and 255 for all others.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*