Previous Topic

Next Topic

Book Contents

Book Index

Supported Variables

This section describes the supported AutoEdit system variables.

Table 173 Commonly Used AutoEdit System Variables

Variable

Description

%%$BFPH

Whether the BFP hardware instruction set is present. Valid values are:

  • Y – The BFP hardware instruction set is present
  • N – The BFP hardware instruction set is not present

%%$CMD

The text of the original (intercepted) command.

When the Dealias feature is active, the value of the %%$CMD system variable is that of the command in its full format, even if it was entered as an alias.

For example, if the system command D A was entered, the %%$CMD variable contains the value DISPLAY A.

%%$CONSNAME

The console name.

  • If the rule is triggered by the detection of a message, %%$CONSNAME contains the name of the console to which the message is issued whenever the message is explicitly sent to a specific console.
  • If the rule is triggered by the detection of a command, %%$CONSNAME is the name of the console issuing the command.

%%$CONSOLEID

The console ID.

  • If the rule is triggered by the detection of a message, %%$CONSOLEID is the ID of the console to which the message is issued (whenever the message is explicitly sent to a specific console).
  • If the rule is triggered by the detection of a command, %%$CONSOLEID is the ID of the console issuing the command.

%%$CPUMODEL

CPU model number

%%$CTOVAR

CTOVAR 28-characters module information

%%$CTOVARMD

CTOVAR 8-characters module modified level

%%$CTOVARRL

CTOVAR 9-characters module release

%%$CVTBFP

Whether Binary Floating Point is supported. Valid values are:

  • Y – Binary Floating Point is supported (simulated unless CVTBFPH is on).
  • N – Binary Floating Point is not supported.

%%$CVTCMPSC

Whether the MVS compression and expansion service is present. Valid values are:

  • Y – The MVS compression and expansion service is present.
  • N – The MVS compression and expansion service is not present.

%%$CVTCMPSH

Whether CMPCS compression and expansion hardware instruction is present. Valid values are:

  • Y – CMPCS compression and expansion hardware instruction is present.
  • N – CMPCS compression and expansion hardware instruction is not present.

%%$CVTCRPTL

Whether the encryption asymmetric feature is supported. Valid values are:

  • Y – The encryption asymmetric feature is supported.
  • N – The encryption asymmetric feature is not supported.

%%$CVTCSRSI

Whether the CSRSI service is available. Valid values are:

  • Y – The CSRSI service is available.
  • N – The CSRSI service is not available.

%%$CVTCSRUN

Whether the CSRUNIC callable service is available. Valid values are:

  • Y – The CSRUNIC callable service is available.
  • N – The CSRUNIC callable service is not available.

%%$CVTCSTR

Whether the CSTRING facility is present on this system. Valid values are:

  • Y – The CSTRING facility is present on this system.
  • N – The CSTRING facility is not present on this system.

%%$CVTCUSE

Whether the CUSE facility is present on this system. Valid values are:

  • Y – The CUSE facility is present on this system.
  • N – The CUSE facility is not present on this system.

%%$CVTDYAPF

Whether dynamic APF, through CSVAPF, is present. Valid values are:

  • Y – Dynamic APF is present.
  • N – Dynamic APF is not present.

%%$CVTDYLPA

Whether dynamic LPA (CSVDYLPA) is available. Valid values are:

  • Y – Dynamic LPA (CSVDYLPA) is available.
  • N – Dynamic LPA (CSVDYLPA) is not available.

%%$CVTDYNEX

Whether CSVDYNEX for dynamic exits is present. Valid values are:

  • Y – CSVDYNEX for dynamic exits is present.
  • N – CSVDYNEX for dynamic exits is not present.

%%$CVTDYNL

Whether dynamic LNKLST, using CSVDYNL, is present. Valid values are:

  • Y – Dynamic LNKLST, using CSVDYNL, is present.
  • N – Dynamic LNKLST, using CSVDYNL, is not present.

%%$CVTENCLV

Whether the ENCLAVES function is present. Valid values are:

  • Y – The ENCLAVES function is present.
  • N – The ENCLAVES function is not present.

%%$CVTESAME

Whether ESAME hardware is present. Valid values are:

  • Y – ESAME hardware is present.
  • N – ESAME hardware is not present.

%%$CVTGTFAV

Whether GTF is active. Valid values are:

  • Y – GTF is active.
  • N – GTF is not active.

%%$CVTHIPER

Whether Hiperspaces are supported. Valid values are:

  • Y – Hiperspaces are supported.
  • N – Hiperspaces are not supported.

%%$CVTILM

Whether IBM License Manager ILM functions are present. Valid values are:

  • Y – IBM License Manager ILM functions are present.
  • N – IBM License Manager ILM functions are not present.

%%$CVTJESCT

Primary subsystem name

%%$CVTLPARC

Whether LPAR clustering is present. Valid values are:

  • Y – LPAR clustering is present.
  • N – LPAR clustering is not present.

%%$CVTMDL

CPU model number

%%$CVTMVPG

Whether MOVEPAGE capability is present on this system. Valid values are:

  • Y – MOVEPAGE capability is present on this system.
  • N – MOVEPAGE capability is not present on this system.

%%$CVTOSLVL

16-characters system level indicators

%%$CVTOVER

Whether SUBPOOL override is supported. Valid values are:

  • Y – SUBPOOL override is supported.
  • N – SUBPOOL override is not supported.

%%$CVTPARMC

Whether Logical Parmlib Service is available through IEFPRMLB. Valid values are:

  • Y – Logical Parmlib Service is available through IEFPRMLB.
  • N – Logical Parmlib Service is not available through IEFPRMLB.

%%$CVTPAUSE

Whether Pause and Release services are present. Valid values are:

  • Y – Pause and Release services are present.
  • N – Pause and Release services are not present.

%%$CVTPPER2

Whether PER2 hardware is present on all CPUs. Valid values are:

  • Y – PER2 hardware is present on all CPUs.
  • N – PER2 hardware is not present on all CPUs.

%%$CVTPLO

Whether PLO instruction is present. Valid values are:

  • Y – PLO instruction is present.
  • N – PLO instruction is not present.

%%$CVTPRDED

Whether product enable and disable (IFAEDxxx) is present. Valid values are:

  • Y – product enable and disable (IFAEDxxx) is present.
  • N – product enable and disable (IFAEDxxx) is not present.

%%$CVTPRODI

Product FMID identifier of the control program, such as JBB1328.

%%$CVTRELNO

Release number—usually 038.

%%$CVTRSMWD

Whether the storage manager window has been built. Valid values are:

  • Y – The storage manager window has been built.
  • N – The storage manager window has not been built.

%%$CVTRTLS

Whether Runtime Library Services (CSVRTLS) are present. Valid values are:

  • Y – Runtime Library Services (CSVRTLS) are present.
  • N – Runtime Library Services (CSVRTLS) are not present.

%%$CVTSNAME

System name for current system.

%%$CVTSOPF

Whether the suppression-on-protection hardware facility is present on this system. Valid values are:

  • Y – The suppression-on-protection hardware facility is present.
  • N – The suppression-on-protection hardware facility is not present.

%%$CVTSUBSP

Whether the SUBSPACE utility, initialized by NIP, is present on this system. Valid values are:

  • Y – The SUBSPACE utility is present on this system.
  • N – The SUBSPACE utility is not present on this system.

%%$CVTUNICS

Whether Unicode callable services are available. Valid values are:

  • Y – Unicode callable services are available.
  • N – Unicode callable services are not available.

%%$CVTWLM

Whether workload manager is installed. Valid values are:

  • Y – The workload manager is installed.
  • N – The workload manager is not installed.

%%$DATE

The current system date, in the format yymmdd.

%%$DAY

The current system day, in the format dd.

%%$DBMAXRW

Maximum number of rows in a database.

%%$ECVTCLON

1 or 2 character value used to identify a system within a Sysplex.

Valid values are:

  • letters from A through Z
  • numbers from 0 through 9
  • $
  • @
  • #

%%$ECVTGMOD

GRS mode of operation.

%%$ECVTHDNM

Hardware name of the processor.

%%$ECVTLOAD

Edited MVS load parameter.

%%$ECVTLPID

8-character IBM product ID for ILM.

%%$ECVTLPNM

LPAR name of the processor configuration.

If the processor is not in LPAR mode, the variable will be null.

%%$ECVTLPUB

8-character IBM Publisher ID for ILM.

%%$ECVTLVID

8-character IBM Version ID for ILM.

%%$ECVTPIDN

PID number.

%%$ECVTPMOD

Control product modify level.

%%$ECVTPNAM

16-character Control product name.

%%$ECVTPOWN

16-character Control product owner.

%%$ECVTPREL

Control product release.

%%$ECVTPVER

Control product version.

%%$ECVTSPLX

Sysplex name.

%%$ECVTVMNM

VM user ID of the virtual computer, of which this MVS image is a guest.

This field is blank if the processor is not a guest under VM.

%%$GRSMODE

GRS mode of operation.

%%$HARDWARE

Hardware name of the processor.

%%$JESJOBNM

For JES2 job-related messages, this variable resolves to the job  ID of the related job (eight characters in the format JOBnnnnn).

The value is taken from the WQEJOBNM field in the IHAWQE block associated with the message. This variable is available for the ON MESSAGE, ON STRING, ON JOBARRIV, and ON JOBEND message-type rules.

%%$JNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JOBNAME.

%%$JOBACCT

The account information of the job that issued the message or command.

%%$JOBID

The JES ID of the job that issued the message or command.

%%$JOBNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JNAME.

%%$JOBTYPE

The job type associated with the job that issued the message. Valid values are:

  • J — Batch jobs (JOB)
  • S — Started task (STC)
  • T — TSO user (TSU)

%%$JULDAY

The current system day, in the format jjj.

%%$LENGTH var

The length of the var variable.

%%$LINES

The line counter for multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

  • If the messages are processed with the %%$M* variable, the %%$LINES variable represents the number of the current secondary line. If the current line is the primary line, the %%$LINES variable resolves to zero.
  • If the lines are processed with the %%$Mn variable, %%$LINES represents the total number of secondary lines.

For information regarding these two types of processing, see the %%$M* and %%$Mn variables in this table.

The maximum value for the %%$LINES variable is 10. If a command response contains more than ten lines, the variable resolves to 10.

%%$LPARMNAME

LPAR name of the processor configuration.

This field is blank if the processor is not in LPAR mode.

%%$M*

For multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

When this system variable is specified in a rule, Control-O processes the message line by line, and all DO statements in the rule are executed repeatedly on each new line of the message. A %%$M* variable in a DO statement resolves to the text of the current line of the message. Therefore, %%$M* can resolve an unlimited number of message lines.

This variable is useful for handling a message with an unknown number of lines, or where the information to be resolved does not occur in any one specific line.

For more information, see "Command-Response Mode" in General Information, and DO ENDMSG: Automated Console Action Parameter.

%%$Mn

For multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

Specifies the nth line of the original message text after the primary message line, where n is a number from 1 through 10.

For example, %%$M1 resolves to the message text contained in the first secondary line.

For more information, see "Command-Response Mode" in General Information, and DO ENDMSG: Automated Console Action Parameter.

%%$MONTH

The current system month, in the format mm.

%%$MSG

The text of the original message (the primary line only for multiline messages).

%%$MULTIFLG

The multiline message flag. Valid values are:

  • R — the line is regular (that is, not part of a multiline message)
  • F — the line is the first line of a multiline WTO
  • M — the line is a middle line of a multiline WTO
  • L — the line is the last line of a multiline WTO

%%$MVSUSER

VM user ID of the virtual computer, of which this MVS image is a guest.

This field is blank if the processor is not a guest under VM.

%%$NULL

A null variable.

%%$PRISUBNM

Primary subsystem name.

%%$REPLY

The reply number of the last WTOR message detected by the rule.

%%$RPLYTXT

The text of the reply to a DO ASKOPER statement.

%%$SMSLEVEL

SMS level.

%%$SSNAME

The name of the Control-O subsystem.

%%$SYSFMID

Product FMID identifier for the control program, such as JBB1328.

%%$SYSPLEX

Sysplex name.

%%$SYSTEMNM

System name for the current system

%%$TIME

The time of day, in the format hhmmss.

%%$TSOLEVEL

TSO level.

%%$UNDEF

An undefined variable. This variable can be used to

  • test whether a variable is defined, using the following syntax:
    IF %%$variable EQ %%$UNDEF
  • delete a variable, using the following syntax:
    DO SET=%%$variable = %%$UNDEF

%%$USERID

The security package user ID of the job, started task, or TSO under which the rule is executing.

%%$Vn

The nth word in the original message or command text, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

%%$WAITRC

The return code of the event that caused the end of a DO WAIT, or a DO COMMAND with a WAITMODE value of YES. For more information, see DO WAIT: Automated Console Action Parameter.

%%$WDAY

The current Gregorian day of the week in the format d, where d is from 1 through 6 or 0. For example, 1=Sunday, 2=Monday, ... 6= Friday, 0=Saturday.

Note: The start of the week depends on installation parameters specifying whether 1=Sunday or 1=Monday. Contact your INCONTROL administrator for your site standard. All references assume 1=Sunday, 2=Monday, and so on.

%%$Wn varname

The nth word of the varname variable, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

For example, %%$W3 %%$MSG represents the third word in the original message text.

%%$WORDS varname

The number of words in the varname variable. A comma or a blank can serve as a delimiter within the variable.

%%$YEAR

The current system year, in the format yy.

Table 174 1-byte autoedit system variables

Variable

Description

%%Dn

the Nth qualifier of the data set name triggering the ON DSNEVENT rule.

%%Mn

For multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

%%Vn

The Nth word in the original message or command text, where N is a value from 1 through 99. A comma or blank erve as a delimiter.

%%Wn

The Nth word of the varname variable, where N is a value from 1 through 99. A comma or blank erve as a delimiter.

Note: BMC does not recommend using %%An because you might confuse the variable with the KSL %An system variable.

Table 175 Global AutoEdit System Variables

Variable

Description

%%$AUTOSYS

The default system in the Sysplex from which TYPE 1 XAE database variables are retrieved.

%%$DBCOUNT

The number of rows in the current global variable pool (the variable group loaded in memory), if the current pool is an AutoEdit variable database or an XAE database.

%%$DBMAXRW

The maximum number of rows in a database.

%%$DBROW

The current row in the current global variable pool, if the current pool is an AutoEdit variable database.

%%$GLOBAL

The name of the global pool to be accessed.

Global pools contain Global variables and their values. One global pool ($GLOBAL) is defined as the default, but multiple global pools can be defined.

Unless a global pool is specified using a %%$GLOBAL parameter, the default $GLOBAL member is used.

After a pool is specified using a %%$GLOBAL parameter, that member remains assigned until a different pool is specified using another %%$GLOBAL parameter. To respecify the default, use this parameter to specify the $GLOBAL member.

For more information, see DO SET: Automated Console Action Parameter, and see the description of Global AutoEdit variables in the INCONTROL for z/OS Administrator Guide.

Example

DO SET=%%$GLOBAL = IMS

DO SET=%%STATUS = UP GLOBAL Y

%%$POOLCOSMOS

Described in %%$POOLCOSMOS.

%%$POOLSTORE

Described in %%$POOLSTORE.

%%$POOLTYPE

Described in %%$POOLTYPE.

%%$RESOLVE

Described in %%$RESOLVE.

%%$SYSPCPU

The ordinal sequence number of the Sysplex-connected system with the name that will be accessed by the next resolution of %%SYSPCPUNAME (described in this table).

%%SYSPCPUCOUNT

The number of additional Control-O systems in the Sysplex that are connected to XAE structures.

Examples:

  • 0 — Only this system is connected or XAE is not enabled.
  • 2 — This system and two others are connected to XAE structures.

%%SYSPCPUNAME

The system name of a Sysplex participant.

The system name that is returned is determined by the %%$SYSPCPU parameter, as described in this table. Each Sysplex-connected system on which Control-O runs the XAE facility is dynamically assigned an ordinal sequence number. %%$SYSPCPU specifies the sequence number of the system whose name is to be retrieved by the next resolution of %%SYSPCPUNAME.

If the sequence number is greater than the total number of systems connected in a Sysplex, the literal value END is returned by %%SYSPCPUNAME in place of the system name.

Table 176 Command AutoEdit System Variables

Variable

Description

%%$CMD

The text of the original (intercepted) command.

When the Dealias feature is active, the value of the %%$CMD system variable is that of the command in its full format, even if it was entered as an alias.

For example, if the system command D A was entered, the %%$CMD variable contains the value DISPLAY A.

%%$CONSNAME

The console name.

  • If the rule is triggered by the detection of a message, %%$CONSNAME contains the name of the console to which the message is issued whenever the message is explicitly sent to a specific console.
  • If the rule is triggered by the detection of a command, %%$CONSNAME is the name of the console issuing the command.

%%$CONSOLEID

The console ID.

  • If the rule is triggered by the detection of a message, %%$CONSOLEID is the ID of the console to which the message is issued (whenever the message is explicitly sent to a specific console).
  • If the rule is triggered by the detection of a command, %%$CONSOLEID is the ID of the console issuing the command.

%%$DATE

The current system date, in the format yymmdd.

%%$DAY

The current system day, in the format dd.

%%$JNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JOBNAME.

%%$JOBID

The JES ID of the job that issued the message or command.

%%$JOBNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JNAME.

%%$JOBTYPE

The job type associated with the job that issued the message. Valid values are:

  • J — Batch jobs (JOB)
  • S — Started task (STC)
  • T — TSO user (TSU)

%%$JULDAY

The current system day, in the format jjj.

%%$LENGTH variable

The length of the var variable.

%%$MONTH

The current system month, in the format mm.

%%$TIME

The time of day, in the format hhmmss.

%%$USERID

The security package user ID of the job, started task, or TSO under which the rule is executing.

%%$Vn

The nth word in the original message or command text, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

%%$WAITRC

The return code of the event that caused the end of a DO WAIT, or a DO COMMAND with a WAITMODE value of YES. For more information, see DO WAIT: Automated Console Action Parameter.

%%$WDAY

The current Gregorian day of the week in the format d, where d is from 1 through 6 or 0. For example, 1=Sunday, 2=Monday, ... 6= Friday, 0=Saturday.

Note: The start of the week depends on installation parameters specifying whether 1=Sunday or 1=Monday. Contact your INCONTROL administrator for your site standard. All references assume 1=Sunday, 2=Monday, and so on.

%%$Wn varname

The nth word of the varname variable, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

For example, %%$W3 %%$MSG represents the third word in the original message text.

%%$WORDS varname

The number of words in the varname variable. A comma or a blank can serve as a delimiter within the variable.

%%$YEAR

The current system year, in the format yy.

Table 177 Control-M AutoEdit System Variables

Variable

Description

%%$CTMHLDSTATUS

The job Held/Free status.

%%$CTMJGROUP

The job group.

%%$CTMJJOBID

The job ID.

%%$CTMJJOBNAME

The job name.

%%$CTMJJOWNER

The job owner.

%%$CTMJLIBRARY

The name of the job schedule library.

Note: Values for the variables from %%$CTMJMEMNAME through %%$CTMJTYPE are returned by the Control-M interface. These values are taken from the current job entry in the Active Jobs file. The current job entry is set using the %%$CTMLINE# reserved user-defined variable, which is described in this table. For more information, see Reserved User-Defined Variables.

%%$CTMJMEMNAME

The job member name.

%%$CTMJODATE

The job ODATE.

%%$CTMJORDERID

The job order ID.

%%$CTMJRBA

The job RBA in the Active Jobs file.

%%$CTMJSTATUS

The job status.

Valid values are:

  • DEL – The job was deleted.
  • END_NOK_ABND – The job ended NOTOK because of an abend.
  • END_NOK_CC – The job ended NOTOK because of the condition code of the job.
  • END_NOK_DISA – The job ended NOTOK. It disappeared.
  • END_NOK_JCLE – The job ended NOTOK because of a JCL error.
  • END_NOK_NSUB – The job ended NOTOK. It was not submitted by JES.
  • END_NOK_UNKW – The job ended NOTOK for an unknown reason.
  • END_OK – The job ended OK.
  • END_OK_FOR – The job was FORCEd OK.
  • EXEC – The job is executing.
  • EXEC_ERR – (Relevant only to SMART Table Entities.) Several of the jobs in the group are still executing, but at least one of them has ended NOTOK.
  • EXEC_INQ – The job was submitted to JES, but is not yet being processed.
  • EXEC_NJE – The job has a status of NJE.
  • EXEC_WSUB – The job was selected, but is still waiting for Control-M to submit it to JES (WAIT SUBMISSION status).
  • EXIST – The job exists on the Active Jobs file.
  • NONEXIST – The job does not exist on the Active Jobs file.
  • WAIT_CONF – Wait for confirmation.
  • WAIT_ORD – (Relevant only to SMART Table Entities.) The ordering of the group is not yet complete. The group is still in the process of being ordered.
  • WAIT_PIPE – The system is waiting for all members of the PIPE to be ready for submission.
  • WAIT_SCH – The status of the job is WAIT SCHEDULE.
  • WAIT_TIME – The status of the job is WAIT TIME.

%%$CTMJTABLE

The name of the job schedule table.

%%$CTMJTYPE

The job type.

%%$CTMLINE#

The current line, or job entry, in the Active Jobs file from which values are returned by the Control-M interface.

%%$CTMLINES

The number of lines of response returned by the Control-M interface.

%%$CTMRC

The return code from the Control-M interface.

Valid values are:

  • 0 — OK (response can be accessed)
  • 4 — job not found in AJF file
  • > 4 — error

%%$CTMRESCURR

The currently used quantity of the Control-M resource.

%%$CTMRESMAX

The maximum available quantity of the Control-M resource.

%%$CTMRESPRI

The priority of the Control-M resource when the jobs requesting it are part of the critical path.

Table 178 Control-O AutoEdit System Variables

Variable

Description

%%

The concatenation character.

%%$ARGS

The argument string passed by a calling rule, through its DO RULE statement, to an invoked rule.

%%$ASKRC

The return code of the event that caused the end of a DO ASKOPER wait.

%%$AUTOLOG

The recording mode for the currently handled message or command.

Valid values are:

  • Y — The message or command is recorded to the Automation Log.
  • N — The message or command is not recorded.

For more information, see DO SET: Automated Console Action Parameter, and see the discussion about preventing logging of unnecessary messages in the INCONTROL for z/OS Administrator Guide.

Example

ON MESSAGE TST*

DO SET=%%$AUTOLOG=N

%%$AUTOSYS

The default system in the Sysplex from which TYPE 1 XAE database variables are retrieved.

%%$BLANK

Resolves to one blank.

%%$BLANKn

Resolves to n blanks, where n is a number from 1 through 99.

%%$COMMSYS

The system communication name or the Control-O system name (CTOGATE name).

  • For DO statements that support communication, such as DO COND, this variable can identify a remote Control-O that should perform the DO action.
  • If the DO statement has a SYSTEM subparameter, such as DO COMMAND, this variable can be used instead of that subparameter.

The DO statements are distributed by Sysplex or CTOGATE communication.

For more information, see Performing an Action on Another System ctoug3.

Example

DO SET   %%$COMMSYS = SYS*

DO SHOUT=TO TSO-CICSOPR

URGENCY  R  SYSTEM   

MESSAGE  CICS IS DOWN!

%%$CONDSTAT

The status of the condition obtained by the last executed DO COND statement, where CONDOPT is set to ? (Check the status of the condition).

Valid values are:

  • Y — The condition exists
  • N — The condition does not exist

%%$CONTROLO

The name of the Control-O monitor started task.

%%$CTOVAR

The CTOVAR 28-character module information.

%%$CTOVARMD

The CTOVAR 8-character module modified level.

%%$CTOVARRL

The CTOVAR 9-character module release.

%%$DBCOUNT

The number of rows in the current global variable pool (the variable group loaded in memory), if the current pool is an AutoEdit variable database or an XAE database.

%%$DBMAXRW

The maximum number of rows in a database.

%%$DBROW

The current row in the current global variable pool, if the current pool is an AutoEdit variable database.

%%$Dn

The nth qualifier of the data set name that triggered the ON DSNEVENT rule.

For example, if the rule was triggered by the data set name USER01.LIB.CNTL, %%$D2 resolves to LIB.

%%$DOLIMIT

The maximum number of DO actions that can be performed during execution of the current Control-O rule. Valid values are:

  • n — Allow execution of from 1 through 999999 DO actions in the current rule. If the rule attempts to exceed the specified number of DO actions, the rule is aborted and an error message is issued.
  • 0 — Allow the rule to execute an unlimited number of DO actions.

If %%$DOLIMIT is not specified in a Control-O rule, the rule is allowed to execute a maximum of 10,000 DO actions.

Example

To allow the current rule to execute a maximum of 500 DO actions, specify the following:

DO SET=%%$DOLIMIT = 500

%%$DSN

Name of the data set handled by the rule (for ON DSNEVENT rules).

%%$DSNDISP

The disposition of the data set handled by the rule (for ON DSNEVENT rules). Valid values are:

  • C — Cataloged
  • D — Deleted
  • K — Kept
  • 2 — NOT CATLG2
  • R — Retained
  • S — Scratched
  • U — Uncataloged

%%$EITEMPLATE

The built-in template used to parse the results of an ENQ entry.

%%$GLOBAL

The name of the global pool to be accessed.

Global pools contain Global variables and their values. One global pool ($GLOBAL) is defined as the default, but multiple global pools can be defined.

Unless a global pool is specified using a %%$GLOBAL parameter, the default $GLOBAL member is used.

After a pool is specified using a %%$GLOBAL parameter, that member remains assigned until a different pool is specified using another %%$GLOBAL parameter. To respecify the default, use this parameter to specify the $GLOBAL member.

For more information, see DO SET: Automated Console Action Parameter, and see the description of Global AutoEdit variables in the INCONTROL for z/OS Administrator Guide.

Example

DO SET=%%$GLOBAL = IMS

DO SET=%%STATUS = UP GLOBAL Y

%%$IO0024

Status of the pre-version-6.x.xx optional Wish IO0024. For more information see "%%$WQEUPD" in this table.

%%$KSLRC

The completion code returned by the KeyStroke OpenAccess (KOA) script specified in the associated DO KSL statement. For more information, see DO KSL: Automated Console Action Parameter.

%%$MSGENV

The environment under which the message or command was intercepted by Control-O.

Valid values are:

  • CICS — The Control-O CICS interface.
  • COM — The Control-O communication interface.
  • COS — A Control-O/COSMOS rule.
  • CTD — The Control-D Sample Exit 18.
  • CTM — A Control-O rule called by Control-M.
  • DSN — The data set event or step completion event detected by the Control-O.
  • IMS — The Control-O IMS interface.
  • J2M — JES2 by JES2 Exit 5.
  • J3C — JES3 by JES3 command Exit IATUX18.
  • J3M — JES3 by JES3 message Exit IATUX31.
  • MVA — MAINVIEW Alarm interface
  • OMG — OMEGAEXP (OMEGAMON exception interface).
  • SSI — The Control-O interface.
  • SYSOUT — The SYSOUT interface.
  • XAM — The Control-O Extended Access Method interface.

%%$MODIFY_O_F

Status of optional Wish WO0943. Valid values are:

  • Y — Wish WO0943 is applied. When the wish is applied the MVS MODIFY command will be done under the Control-O or CMEM address space.
  • N — Default. Wish WO0943 is not applied. When the wish is not applied the MVS MODIFY command will be done under the USER address space of the user who issued the command from Screen OR or Screen C

For further information see Wish WO0943.

%%$NULL

A null variable.

%%$OWNER

The user ID of the rule owner, taken from the OWNER field.

%%$PARSRC

The return code resulting from a %%$PARSE function that indicates whether the parsed string matched all string patterns in the template.

Valid values are:

  • 0 — The parsed string fully matched the string patterns in the template.
  • 4 — At least one string pattern in the template was not matched.

%%$REPLY

The reply number of the last WTOR message detected by the rule.

%%$RESPMSG

The IDs of messages expected in response to the DO COMMAND statement that follows the DO SET %%$RESPMSG statement. This variable is supported for historical reasons. For more information, see "Command-Response Mode" in General Information.

Example

DO SET=%%$RESPMSG = (CTM101I, CTM240I)

DO COMMAND=F CONTROLM,NEWCONLIST

%%$RJOBID

The ID of the job associated with DO COND, DO FORCEJOB, and DO RESOURCE requests. When specified, the value overrides the default job ID.

If this variable is set, you should also set the %%$RJOBNAME reserved user-defined variable. For an example of usage, see the %%$RJOBNAME variable in this table.

%%$RJOBNAME

The name of the job associated with DO COND, DO FORCEJOB, and DO RESOURCE requests. When specified, the value overrides the default job name. If this variable is set, you should also set the %%$RJOBID variable, described in this table.

Example

The IAT5210 JES3 tape mount message is issued under the address space of JES3, and Control-O sets the default job name to JES3. To associate the correct job, which mounts the tape, with the DO RESOURCE request, the job name and job ID are extracted from the text of the message, as follows:

DO SET=%%$RJOBNAME = %%$V3

DO SET=%%$RJOBID = %%$V4

DO RESOURCE=TAPE      0001 -

%%$RPLYTXT

The text of the reply to a DO ASKOPER statement.

%%$SECJES

Status of optional Wish WI0920:

  • Y — CTOPARM SECJES=Y. Control-O rules are triggered regardless of issuing JES2. Default.
  • N — CTOPARM SECJES=N. The JES that issued the message is taken into account before rules are triggered.

For more information, see the Control-O installation chapter in the INCONTROL for z/OS Installation Guide.

%%$SHELLRC

The completion code returned by the BPXBATCH utility running under TSO/E. The utility executes the z/OS shell script specified in the associated DO SHELL statement.

For descriptions of BPXBATCH return codes, refer to IBM’s z/OS UNIX System Services Command Reference, the “BPXBATCH return codes” section. In most cases, you will need to divide the BPXBATCH return code by 256 to obtain the exit status of the program that was invoked by BPXBATCH.

For more information, see DO SHELL: Automated Console Action Parameter.

%%$SSNAME

The name of the Control-O subsystem.

%%$STATID

The message ID under which the statistics for a message should be accumulated.

This variable can be used to combine the statistics of messages with individual statistics that are not required. This eliminates unnecessary messages from the Message Statistics screen.

Example

To combine the statistics for all messages with the prefix CKH into one general statistics item under the identifier CKHMSG, specify the following:

ON MSG CKH*

DO SET %%$STATID = CKHMSG

%%$STEPCC

The completion code of the step the termination of which triggered the rule.

%%$SYSLINEn

The contents of a line selected in a DO SYSREQ statement.

%%$SYSLINES

The number of lines selected in a DO SYSREQ statement.

%%$SYSRC

The return code for DO SYSREQ statement.

%%$TIMEOUT

The time, in seconds, to wait for one of the following:

  • completion of the DO TSO or DO KSL statements running in WAIT mode
  • interception of responses to messages after a command was issued in command-response mode

The following formats are possible:

  • For DO COMMAND statements, use the syntax
    DO SET=%%$TIMEOUT=(value1,value2)

    In this syntax

    value1 is the maximum number of seconds to wait for the first message

    value2 is the maximum number of seconds to wait between the first and the last message

  • For DO KSL and DO TSO statements, use the syntax
    DO SET=%%$TIMEOUT=value1

    In this syntax, value1 is the maximum number of seconds Control-O waits for completion of the task or command before aborting the task or command.

This variable is supported for historical reasons. For more information, see "Command-Response Mode" in General Information.

%%$TSORC

The completion code returned by the TSO command, CLIST, or REXX procedure specified in the associated DO TSO statement.

For more information, see DO TSO: Automated Console Action Parameter.

%%$TYPE

The rule type as it appears in the Rule Status screen.

%%$UNDEF

An undefined variable. This variable can be used to

  • test whether a variable is defined, using the following syntax:
    IF %%$variable EQ %%$UNDEF
  • delete a variable, using the following syntax:
    DO SET=%%$variable = %%$UNDEF

%%$Vn

The nth word in the original message or command text, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

%%$WAITKSL

Whether a Control-O rule waits for the KeyStroke OpenAccess (KOA) script to complete so that it can check return codes or Global variables set by the script and proceed accordingly.

Valid values are

  • YES
  • NO

The value of %%$WAITKSL is automatically reset to NO after the completion of the KOA script.

Example

DO SET=%%$WAITKSL = YES

DO KSL=scriptname arg1 arg2 ... arg10

IF %%$KSLRC EQ# 4

DO SHOUT=...

This variable is supported for historical reasons. For more information, see DO KSL: Automated Console Action Parameter.

%%$WAITRC

The return code of the event that caused the end of a DO WAIT, or a DO COMMAND with a WAITMODE value of YES. For more information, see DO WAIT: Automated Console Action Parameter.

%%$WAITRESP

Whether Control-O retrieves, in the same rule, all messages issued in response to an operator command.

Valid values are YES and NO.

The value of %%$WAITRESP is automatically reset to NO after all response messages have been intercepted.

Example

DO SET=%%$WAITRESP = YES

DO COMMAND=D T

This variable is supported for historical reasons. For more information, see DO COMMAND: Automated Console Action Parameter.

%%$WAITTSO

Whether a Control-O rule waits for the completion of the TSO command, CLIST, or REXX procedure so that it can check return codes or Global variables set by the command and proceed accordingly.

Valid values are:

  • YES
  • NO

The value of %%$WAITTSO is automatically reset to NO after the completion of the TSO command, CLIST, or REXX procedure.

Example

DO SET=%%$WAITTSO = YES

DO TSO=...

IF %%$TSORC EQ# 4

DO SHOUT=...

This variable is supported for historical reasons. For more information, see DO TSO: Automated Console Action Parameter.

%%$WI0920

Prior to version 6.0.00, optional Wish WI0920 displayed the value of %%$SECJES. This %%$WI0920 variable performs the same function. For more information, see "%%$SECJES" in this table.

%%$WO0943

Status of optional wish WO0943. For more information, see "%%$MODIFY_O_F" in this table.

%%$WQEUPD

Status of optional Wish IO0024.

Indicates whether to update the message block (WQE) "in place" with the required changes created in the DO DISPLAY statement with the NEWTEXT text. Valid values are:

  • N — CTOPARM WEQUPD is set to N. Do not update the message block. Default.
  • Y — CTOPARM WEQUPD is set to Y. Update the message block.

For more information, see the Control-O chapter in the INCONTROL for z/OS Installation Guide.

%%$WTOLINKAGE

Determines how the Write To Operator (WTO) service that caused the message to appear was requested.

WTO is the MVS system service that allows programs to write messages to consoles and the system log. Valid values are:

  • SVC - the message was issued by WTO with LINKAGE=SVC (default)
  • BRANCH - the message was issued by WTO with LINKAGE=BRANCH

%%$XAMLB

Name of the library containing the rule that will be used in the DO RULE request when using the Control-O eXtended Automation Mechanism (XAM).

The default is ALL.

%%$XAMTB

Name of the table containing the rule that will be used in the DO RULE request when using the Control-O eXtended Automation Mechanism (XAM). The default is ALL.

Table 179 Control-O Control Statements

Statement

Description

%%$LOCALPOOLSIZE

When set to LARGE, Control-O will attempt to increase the allocation of storage for local variables to rules that enter wait mode. For a list of events that cause a rule to enter wait mode, see the description of the WAITPR# parameter.

Use this variable only after receiving the following error message for a rule:

WTO283E AUTOEDIT FAILED, RC=0004, REASON=0001. PROCESSING OF THIS RULE IS ABORTED

Add the DO SET %%$LOCALPOOLSIZE = LARGE statement for execution before the rule enters the first wait mode.

If the error message persists after using this variable, consider reorganizing the rule's local variables to require less storage space.

%%$MLLEND

For a complete description of this statement, see %%$MLLEND.

%%$RESOLVE

For a complete description of this statement, see %%$RESOLVE.

%%$RANGE

For a complete description of this statement, see %%$RANGE.

Table 180 Control-O Function AutoEdit System Variables

Variables

Description

%%$CALCDATE

Date calculations based on a given date.

The syntax is %%$CALCDATE date ± quantity

In this syntax

  • date must be in the format yymmdd.
  • quantity is the number of days, from 1 through 99999, to add to or subtract from the date. It can be one of the following:

    — a number

    — a numeric AutoEdit expression

For more information, see %%$CALCDATE.

Note: This variable operates on Gregorian dates only; you cannot specify Julian dates such as with the %%JULDAY variable.

%%$D2X num

The decimal value-to-hexadecimal string convertor. The maximum number that can be converted with this variable is 2147483647, or 231-1.

Example

To convert decimal 4095 to the equivalent hexadecimal string (FFF), specify %%$D2X 4095

%%$DIV

The operator that divides one operand by another operand.

%%$ISNUM

Whether a specified string is numeric. To be considered numeric, the specified string must contain only the digits from 0 through 9.

The syntax is %%$ISNUM string.

In this syntax, string is the constant or variable that contains the string to evaluate.

Possible values returned by this function are:

  • YES — The specified string is numeric.
  • NO — The specified string is not numeric.

For more information, see %%$ISNUM.

%%$JOBSTAT job_name

The job status. Valid values are:

  • ACTIVE — The specified job, started task, or TSO is executing.
  • INACTIVE — The specified job, started task, or TSO is not executing.
  • NOTJOB — The specified name is not valid.

%%$LENGTH var

The length of the var variable.

%%$MINUS

The operator that subtracts one operand from another operand.

%%$PARSE

Splits a specified string into substrings according to a specified template. A template consists of variables and patterns that determine the parsing process.

The syntax is DO SET=%%$PARSE string template

In this syntax

  • string is the AutoEdit variable that contains the string to be parsed.
  • template is the AutoEdit variable or constant that contains the template.

For more information, see %%$PARSE.

%%$PLUS

The operator that adds two operands.

%%$POOLCOSMOS cosmos_dbname

Returns the type of the specified COSMOS database.

The syntax is %%$POOLCOSMOS cosmos_dbname

In this syntax, cosmos_dbname is the name of the COSMOS database.

%%$POOLSTORE gblvar_pname

Returns the source type of the specified pool Control-O storage.

The syntax is %%$POOLSTORE gblvar_pname

where gblvar_pname is the Global variable pool name.

%%$POOLTYPE gblvar_pname

Returns the type of the specified pool in Control-O, as defined in the list of pools to be loaded (DAGLBLST).

The syntax is %%$POOLTYPE gblvar_pname

In this syntax, gblvar_pname is the Global variable pool name.

%%$POS

Locates a substring in a specified string, and indicates the position of the first character of that substring.

The syntax is %%$POS substring string

In this syntax,

  • substring is the constant or variable that contains the substring for which to search
  • string is the constant or variable that contains the string to search for the specified substring

For more information, see %%$POS.

Note: If the substring is not found in the specified string, this variable returns a value of 0.

%%$SUBSTR

Extracts a substring from the input string.

The syntax is %%$SUBSTR strng startpos len

In this syntax

  • strng is the input string from which the substring is extracted
  • startpos is the first character of the input string to extract
  • len is the number of characters to extract

For more information, see %%$SUBSTR.

%%$TIMEINT

Calculates the time interval between two given times, specified in any order.

The syntax is %%$TIMEINT time1 time2

In this syntax, time1 and time2 are constants or variables in the format yydddhhmmss.

For more information, see %%$TIMEINT.

%%$TIMES

The operator that multiplies one operand by another operand.

%%$Wn varname

The nth word of the varname variable, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

For example, %%$W3 %%$MSG represents the third word in the original message text.

%%$WORDS varname

The number of words in the varname variable. A comma or a blank can serve as a delimiter within the variable.

%%$X2C string

The hexadecimal string-to-character convertor.

Example

To convert the hexadecimal string "2A4F" to text format, specify %%$X2C 2A4F

%%$X2D string

The hexadecimal string-to-decimal value convertor. The result of the conversion is always positive. The highest number that can be converted using this variable is 7FFFFFFF.

Example

To convert the hexadecimal string "FFF" to the equivalent decimal value (4095), specify %%$X2D FFF.

Table 181 CVT and ECVT AutoEdit System Variables

Variable

Description

%%$CVTBFP

Whether Binary Floating Point support is active. Binary Floating Point support is simulated unless the CVTBFPH variable, described in this table, is set to Y (Yes).

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCMPSC

Whether to indicate the presence of the MVS compression/expansion service.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCMPSH

Whether to indicate the presence of the CMPCS compression/expansion hardware instruction.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCRPTL

Whether the encryption asymmetric feature is supported.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCSRSI

Whether CSRSI service is available.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCSRUN

Whether CSRUNIC callable service is available.

Valid values are

  • Y (Yes)
  • N (No)

%%$CVTCSTR

Whether the CSTRING facility is present on this system.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTCUSE

Whether the CUSE facility is present on this system.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTDLPA

Whether dynamic LPA (CSVDYLPA) is available.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTDNEX

Whether CSVDYNEX for dynamic exits is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTDYAPF

Whether the dynamic APF is present through CSVAPF.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTDYNL

Whether dynamic LNKLST is present through CSVDYNL.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTENCLV

Whether the ENCLAVES function is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTESAME

Whether to indicate the presence of ESAME hardware.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTGTFAV

Whether GTF is active.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTHIPER

Whether hyperspaces are supported.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTILM

Whether IBM License ManagerILM functions are present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTJESCT

The primary subsystem name.

%%$CVTLPARC

Whether LPAR Clustering is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTMDL

The CPU model number.

%%$CVTMVPG

Whether MOVEPAGE capability is present on this system.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTOSLVL

The 16-character system level indicators

%%$CVTOVER

Whether SUBPOOL override is supported.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPARMC

Whether Logical Parmlib Service is available through IEFPRMLB.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPAUSE

Whether Pause/Release services are present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPER2

Whether PER2 hardware is present on all CPUs.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPLO

Whether a PLO instruction is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPRDED

Whether product enable/disable (IFAEDxxx) is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTPRODI

The product FMID identifier for the control program. For example, JBB1328.

%%$CVTRELNO

The 4-character release number, usually "038  " (with trailing blank).

%%$CVTRSMWD

Whether the storage manager window was built.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTRTLS

Whether Runtime Library services (CSVRTLS) are present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTSNAME

The name of the current system.

%%$CVTSOPF

Whether the suppression-on-protection hardware facility is present.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTSUBSP

Whether the SUBSPACE facility is present on this system. The facility is initialized by NIP.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTUNICS

Whether Unicode callable services are available.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CVTWLM

Whether the IBM Workload Manager is installed.

Valid values are:

  • Y (Yes)
  • N (No)

%%$ECVTCLON

The 1-character or 2-character value used to identify a system within a Sysplex. Valid values are:

  • from A through Z
  • from ) 0 through 9
  • $
  • @
  • #

%%$ECVTGMOD

The GRS mode of operation.

%%$ECVTHDNM

The hardware name of the processor.

%%$ECVTLOAD

The edited MVS load parameter.

%%$ECVTLPID

The 8-character IBM product ID for ILM.

%%$ECVTLPNM

The LPAR name of the processor configuration. This field is blank if the processor is not in LPAR mode.

%%$ECVTLPUB

The 8-character IBM publisher ID for ILM.

%%$ECVTLVID

The 8-character IBM version ID for ILM.

%%$ECVTPIDN

The PID number.

%%$ECVTPMOD

The Control Product modify level.

%%$ECVTPNAM

The 16-character Control Product name.

%%$ECVTPOWN

The 16-character Control Product owner.

%%$ECVTPREL

The Control Product release.

%%$ECVTPVER

The Control Product version.

%%$ECVTSPLX

The name of the Sysplex.

%%$ECVTVMNM

The VM user ID of the virtual machine, of which this MVS image is a guest. This field is blank if the processor is not a guest under VM.

Table 182 General AutoEdit System Variables

Variable

Description

%%$ASID

The address space ID in decimal format.

%%$ASIDX

The address space ID in hexadecimal format.

%%$BFPH

Whether to indicate the presence of the BFP hardware instruction set.

Valid values are:

  • Y (Yes)
  • N (No)

%%$CONSNAME

The console name.

  • If the rule is triggered by the detection of a message, %%$CONSNAME contains the name of the console to which the message is issued whenever the message is explicitly sent to a specific console.
  • If the rule is triggered by the detection of a command, %%$CONSNAME is the name of the console issuing the command.

%%$CONSOLEID

The console ID.

  • If the rule is triggered by the detection of a message, %%$CONSOLEID is the ID of the console to which the message is issued (whenever the message is explicitly sent to a specific console).
  • If the rule is triggered by the detection of a command, %%$CONSOLEID is the ID of the console issuing the command.

%%$CPUMODEL

The CPU model number.

%%$GRSMODE

The GRS mode of operation.

%%$GTFMODE

Whether GTF is active. Valid values are:

  • Y (Yes)
  • N (No)

%%$HARDWARE

The hardware name of the processor.

%%$JES2CHAR

JES2 recognition character

%%$JES2LEVEL

Primary subsystem name

%%$JES2SSNM

JES2 subsystem name

%%$JES2SSVS

JES2 version, release and mod

%%$JES2SYSID

4-character JES2 system ID

%%$JES2SYSNM

8-character JES2 system name

%%$JESMAXDD

Maximum number of single unit DD statements allowed for a job step

%%$JESNRSS

Total number of subsystems

%%$JNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JOBNAME.

%%$JOBACCT

The account information of the job that issued the message or command.

%%$JOBNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JNAME.

%%$JOBTYPE

The job type associated with the job that issued the message. Valid values are:

  • J — Batch jobs (JOB)
  • S — Started task (STC)
  • T — TSO user (TSU)

%%$LPARNAME

The LPAR name of the processor configuration. This field is blank if the processor is not in LPAR mode.

%%$MAXDDS

Maximum number of single unit DD statements allowed for a job step

%%$MVSLEVEL

The z/OS product release under which Control-O is running. Up to eight characters.

For example, SP3.1.1 or SP4.2.2

%%$MVSUSER

The VM user ID of the virtual machine, of which this MVS image is a guest. This field is blank if the processor is not a guest under VM.

%%$PGMSTEP

The job program step name from which the message was issued.

%%$PRISUBNM

The primary subsystem name.

%%$PROCSTEP

The job procedure step from which the message was issued.

%%$SABEND

The system abend code of the step whose termination triggered the rule.

%%$SMFID

The SMF ID of the CPU issuing the message or running the KSL script.

%%$SUBSYSS#

Total number of subsystems

%%$SYSFMID

The product FMID identifier for the control program, for example, JBB1328.

%%$SYSPLEX

The Sysplex name

%%$SYSTEMNM

The name of the current system.

%%$TSOLEVEL

The TSO level.

%%$UABEND

The user abend code of the step the termination of which triggered the rule.

%%$USERID

The security package user ID of the job, started task, or TSO under which the rule is executing.

%%$XCONSOLEID

The 8-character ID of the console that received the message or issued the command.

Table 183 IPL AutoEdit System Variables

Variable

Description

%%$IPLCLPA

Whether the keyword CLPA was specified during IPL. Valid values are:

  • YES — CLPA was specified.
  • NO — CLPA was not specified.

%%$IPLCVIO

Whether the keyword CVIO was specified during IPL. Valid values are:

  • YES — CVIO was specified.
  • NO — CVIO was not specified.

%%$IPLDATE

The date of the most recent IPL. The format is defined in the DATETYP parameter of the IOAPARM library. For a description of this parameter, see the IOA chapter in the INCONTROL for z/OS Installation Guide.

%%$IPLTIME

The time of the most recent IPL in the format hhmmss.

%%$IPLTYPE

The type of IPL that was run, determined by whether the keyword CLPA or CVIO was specified.
Valid values are:

  • WARM — Neither CLPA nor CVIO was specified.
  • QUICK — CVIO was specified.
  • COLD — Either CLPA, or both CLPA and CVIO, was specified.

%%$LOADPARM

The value of the LOADPARM parameter, which was specified during IPL.

The format is wwwwxxyz

In this format

  • wwww is the IODF device number
  • xx is the LOADxx suffix
  • y is the NIP console prompt feature
  • z is the z/OS nucleus suffix

%%$SYSRESCUA

The address of the volume used for IPL.

%%$SYSRESVOL

The name of the volume used for IPL.

Table 184 JES2 and JES3 AutoEdit System Variables

Variable

Description

%%$CCTCOMCH

The JES2 recognition character

%%$CCTLEVEL

The primary subsystem name

%%$CCTMVSNM

The 8-character JES2 system name

%%$CCTNDENM

The JES2 node name

%%$CCTSID

The 4-character JES2 system ID

%%$CCTSSNM

The JES2 subsystem name

%%$CCTSSVS

The JES2 version, release and mod

%%$JES2CHAR

The JES2 recognition character

%%$JES2CKP1

The JES2 checkpoint1 name

%%$JES2CKP2

The JES2 checkpoint2 name

%%$JES2LEEL

The primary subsystem name

%%$JES2NODE

The JES2 node name

%%$JES2SSNM

The JES2 subsystem name

%%$JES2SSVS

The JES2 version, release and mod

%%$JES2SYSID

The 4-character JES2 system ID

%%$JES2SYSNM

The 8-character JES2 system name

%%$JES3MSTAT

For JES3 and Sysplex environment. The status of the message intercepted by Control-O. Valid values are:

  • R — The message was initially issued on a local system, and then reissued by JES3 on the global system. The rule is triggered by the reissued message on the global system.
  • F — First (original) occurrence of the message.

%%$JESJOBNM

For JES2 job-related messages, this variable resolves to the job  ID of the related job (eight characters in the format JOBnnnnn)

The value is taken from the WQEJOBNM field in the IHAWQE block associated with the message. This variable is available for the ON MESSAGE, ON STRING, ON JOBARRIV, and ON JOBEND message-type rules.

%%$JESMAXDD

The maximum number of single unit DD statements allowed for a job step

%%$JESNRSS

The total number of subsystems

%%$JESTYPE

The type of JES environment under which Control-O is running. Valid values are:

  • 2 — For JES2
  • 3 — For JES3

%%$JOBID

The JES ID of the job that issued the message or command.

%%$MAXDDS

The maximum number of single unit DD statements allowed for a job step

%%$SUBSYSS#

The total number of subsystems

Table 185 MAINVIEW AutoEdit System Variables

Variable

Description

%%$MVA_CONTEXT

The context of the exception.

%%$MVA_DATA

The assigned user data (PCMD).

%%$MVA_DATE

The exception date in the format yyddd.

%%$MVA_GROUP

The group name associated with the exception.

%%$MVA_IND

Whether the alarm should be sounded. Valid values are:

  • Y — Sound the alarm
  • N — Do not sound the alarm

%%$MVA_KEY

The unique key that identifies the exception.

%%$MVA_PRODUCT

The MAINVIEW product associated with the exception.

%%$MVA_PRTY

The exception priority. Valid values are:

  • CLEAR
  • INFO
  • WARNING
  • MINOR
  • MAJOR
  • CRITICAL

%%$MVA_QUEUE

The queue that the exception is assigned to.

%%$MVA_SCOPE

The scope associated with the exception.

%%$MVA_TEXT

The text of the alert message.

%%$MVA_TIME

The exception time in the format hhmmss.

%%$MVA_TYPE

The exception type. Valid values are:

  • EXCEPT — Start of new exception
  • EXCEPTX — End of exception

%%$MVA_USER

The ID of the user that made the last exception update.

%%$MVA_VIEW

The view associated with the exception.

Table 186 Message AutoEdit System Variables

Variable

Description

%%$CONSNAME

The console name.

  • If the rule is triggered by the detection of a message, %%$CONSNAME contains the name of the console to which the message is issued whenever the message is explicitly sent to a specific console.
  • If the rule is triggered by the detection of a command, %%$CONSNAME is the name of the console issuing the command.

%%$CONSOLEID

The console ID.

  • If the rule is triggered by the detection of a message, %%$CONSOLEID is the ID of the console to which the message is issued (whenever the message is explicitly sent to a specific console).
  • If the rule is triggered by the detection of a command, %%$CONSOLEID is the ID of the console issuing the command.

%%$DATE

The current system date, in the format yymmdd.

%%$DAY

The current system day, in the format dd.

%%$DDNAME

The name of the SYSOUT DD statement to which the message that triggered the rule was written. This variable is relevant only for rules that contain an ON SYSOUT statement.

%%$DESC

The descriptor code of the original message.

%%$JESJOBNM

For JES2 job-related messages, this variable resolves to the job  ID of the related job (eight characters in the format JOBnnnnn).

The value is taken from the WQEJOBNM field in the IHAWQE block associated with the message. This variable is available for the ON MESSAGE, ON STRING, ON JOBARRIV, and ON JOBEND message-type rules.

%%$JNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JOBNAME.

%%$JOBID

The JES ID of the job that issued the message or command.

%%$JOBNAME

The name of the job that issued the message or command. This system variable contains the same value as %%$JNAME.

%%$JOBTYPE

The job type associated with the job that issued the message. Valid values are:

  • J — Batch jobs (JOB)
  • S — Started task (STC)
  • T — TSO user (TSU)

%%$JULDAY

The current system day, in the format jjj.

%%$LDOMID

The message identification number (DOM ID) of the last message issued or intercepted by Control-O.

%%$LENGTH variable

The length of the var variable.

%%$LINES

The line counter for multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

  • If the messages are processed with the %%$M* variable, the %%$LINES variable represents the number of the current secondary line. If the current line is the primary line, the %%$LINES variable resolves to zero.
  • If the lines are processed with the %%$Mn variable, %%$LINES represents the total number of secondary lines.

For information regarding these two types of processing, see the %%$M* and %%$Mn variables in this table.

The maximum value for the %%$LINES variable is 10. If a command response contains more than ten lines, the variable resolves to 10.

%%$M*

For multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

When this system variable is specified in a rule, Control-O processes the message line by line, and all DO statements in the rule are executed repeatedly on each new line of the message. A %%$M* variable in a DO statement resolves to the text of the current line of the message. Therefore, %%$M* can resolve an unlimited number of message lines.

This variable is useful for handling a message with an unknown number of lines, or where the information to be resolved does not occur in any one specific line.

For more information, see "Command-Response Mode" in General Information, and DO ENDMSG: Automated Console Action Parameter.

%%$MCSFLAGB

The MCS flags from the WQE (WQEMCSF source) in binary format. For messages only.

%%$MCSFLAGX

The MCS flags from the WQE (WQEMCSF source) in hexadecimal format. For messages only.

%%$MDOMID

The message identification number (DOM ID) of the message that triggered the rule.

%%$Mn

For multiline messages and messages intercepted in command-response mode. Multiline messages are messages that consist of one primary line followed by at least one secondary line.

Specifies the nth line of the original message text after the primary message line, where n is a number from 1 through 10.

For example, %%$M1 resolves to the message text contained in the first secondary line.

For more information, see "Command-Response Mode" in General Information, and DO ENDMSG: Automated Console Action Parameter.

%%$MONTH

The current system month, in the format mm.

%%$MSG

The text of the original message (the primary line only for multiline messages).

%%$MSGENV

The environment under which the message or command was intercepted by Control-O.
Valid values are:

  • CICS — the Control-O CICS interface
  • COM — the Control-O communication interface
  • COS — a Control-O/COSMOS rule
  • CTD — the Control-D Sample Exit 18
  • CTM — a Control-O rule called by Control-M
  • DSN — the data set event or step completion event detected by the Control-O
  • IMS — the Control-O IMS interface
  • J2M — JES2 by JES2 Exit 5
  • J3C — JES3 by JES3 command Exit IATUX18
  • J3M — JES3 by JES3 message Exit IATUX31
  • MVA — MAINVIEW Alarm interface
  • OMG — OMEGAEXP (OMEGAMON exception interface)
  • SSI — the Control-O interface
  • SYSOUT — the SYSOUT interface
  • XAM — the Control-O Extended Access Method interface

%%$MSGID

The first ten characters of the message code.

%%$MSGSYSID

For JES3. The SYSID of the system on which the message was originally issued.

%%$MSGSYSNM

The system name associated with the message.

%%$MULTIFLG

The multiline message flag. Valid values are:

  • R — the line is regular (that is, not part of a multiline message)
  • F — the line is the first line of a multiline WTO
  • M — the line is a middle line of a multiline WTO
  • L — the line is the last line of a multiline WTO

%%$REISSUED

Whether the message that triggered the rule was issued from the current system.

  • Y (Yes) — The message was issued from a different system. It was transferred to this system by a system component.
  • N (No) — The message was issued from the current system.

%%$ROUTE

The route code of the original message.

%%$SPECIALC

The special character (+, @, or *) that appears on the console or in the Syslog at the beginning of a message.

%%$TIME

The time of day, in the format hhmmss.

%%$USERID

The security package user ID of the job, started task, or TSO under which the rule is executing.

%%$Vn

The nth word in the original message or command text, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

%%$WAITRC

The return code of the event that caused the end of a DO WAIT, or a DO COMMAND with a WAITMODE value of YES. For more information, see DO WAIT: Automated Console Action Parameter

%%$WDAY

The current Gregorian day of the week in the format d, where d is from 1 through 6 or 0. For example, 1=Sunday, 2=Monday, ... 6= Friday, 0=Saturday.

Note: The start of the week depends on installation parameters specifying whether 1=Sunday or 1=Monday. Contact your INCONTROL administrator for your site standard. All references assume 1=Sunday, 2=Monday, and so on.

%%$Wn varname

The nth word of the varname variable, where n is a value from 1 through 99. A comma or a blank can serve as a delimiter.

For example, %%$W3 %%$MSG represents the third word in the original message text.

%%$WORDS varname

The number of words in the varname variable. A comma or a blank can serve as a delimiter within the variable.

%%$YEAR

The current system year, in the format yy.

The SMS variables described in the following table pass the associated values to the ACS exit routines.

Table 187 SMS AutoEdit System Variables

Variable

Description

%%$SMS_ACCT_JOB#

The maximum number of job account fields.

Note: %%$SMS_ACCT_JOB# resolves to the number of fields in the job account information.

%%$SMS_ACCT_JOBnnn

The account information from the JOB statement.

Note: %%$SMS_ACCT_JOB# resolves to the number of fields in the job account information.

%%$SMS_ACCT_JOBnnn resolves to the job account information in field number nnn. For example, if the account information on the JOB card is (SMITH,PAYROLL,3) then %%$SMS_ACCT_JOB2 resolves to PAYROLL.

%%$SMS_ACCT_STEP#

The maximum number of step account fields.

Note: %%$SMS_ACCT_STEP# resolves to the number of fields in the step account information.

%%$SMS_ACCT_STEPnnn resolves to the step account information in field number nnn. For example, if the account information in the EXEC card is (SMITH,PAYROLL,3) then %%$SMS_ACCT_STEP2 resolves to PAYROLL.

%%$SMS_ACCT_STEPnnn

The account information from the EXEC statement.

Note: %%$SMS_ACCT_STEP# resolves to the number of fields in the step account information.

%%$SMS_ACCT_STEPnnn resolves to the step account information in field number nnn. For example, if the account information in the EXEC card is (SMITH,PAYROLL,3) then %%$SMS_ACCT_STEP2 resolves to PAYROLL.

%%$SMS_ACSENVIR

The environment in which the rule is invoked. Valid values are:

  • RECALL
  • RECOVER
  • RENAME
  • CONVERT
  • ALLOC
  • STORE
  • CHANGE
  • CTRANS

%%$SMS_APPLIC

The name of the RACF application.

%%$SMS_DD

The name of the DD statement.

%%$SMS_DEF_DATACLAS

The RACF default Data class of the data set owner.

%%$SMS_DEF_MGMTCLAS

The RACF default Management class of the data set owner.

%%$SMS_DEF_STORCLAS

The RACF default Storage class of the data set owner.

%%$SMS_DSN

The data set name.

Note: %%$SMS_DSN resolves to the complete data set name. To reference a single qualifier of the data set name, use %%$SMS_DSNnnn, where nnn resolves to the number of the qualifier.

%%$SMS_NQUAL resolves to the number of qualifiers in the data set name. For example, %%$SMS_DSN%%$SMS_NQUAL returns the rightmost qualifier.

%%$SMS_DSNTYPE

The data set name type. Valid values are:

  • EXC
  • EXR
  • HFS
  • LIBRARY
  • PDS
  • Null

%%$SMS_DSORG

The data set organization. Valid values are:

  • PS
  • PO
  • VS
  • DA
  • Null

%%$SMS_DSOWNER

The name of the user or group that owns the data set

%%$SMS_DSTYPE

The data set type. One of the following:

  • GDS
  • PERM
  • TEMP
  • Null

%%$SMS_EXPDT

The expiration date in the format yyyyddd.

%%$SMS_FILENUM

The data set sequence number from the LABEL parameter.

%%$SMS_GROUP

The RACF group.

%%$SMS_JOB

The job name.

%%$SMS_LABEL

The label type. Valid values are:

  • NL
  • AL
  • SL
  • NSL
  • SUL
  • AUL
  • BLP
  • LTM

%%$SMS_LIBANAME

The tape library name.

%%$SMS_MAXSIZE

The maximum data set size in KB.

%%$SMS_MEMN

The name of the OAM object.

Note: %%$SMS_MEMN resolves to the full OAM member name. To reference a single qualifier, use %%$SMS_MEMNnnn, where nnn resolves to the number of the qualifier.

%%$SMS_MEMNQUAL

The number of qualifiers in the OAM object name.

Note: %%$SMS_MEMN resolves to the full OAM member name. To reference a single qualifier, use %%$SMS_MEMNnnn, where nnn resolves to the number of the qualifier.

%%$SMS_MEMNQUAL resolves to the number of qualifiers in the data set name. For example, %%$SMS_MEMN%%$SMS_MEMNQUAL returns the rightmost qualifier.

%%$SMS_MSVGP

The group name for MSS.

%%$SMS_NQUAL

The number of qualifiers in the data set name.

Note: %%$SMS_DSN resolves to the complete data set name. To reference a single qualifier of the data set name, use %%$SMS_DSNnnn, where nnn resolves to the number of the qualifier.

%%$SMS_NQUAL resolves to the number of qualifiers in the data set name. For example, %%$SMS_DSN%%$SMS_NQUAL returns the rightmost qualifier.

%%$SMS_NVOL

The volume count.

Note: %%$SMS_VOLUMEnnn resolves to volume number nnn in the volume list.

%%$SMS_NVOL resolves to the number of volumes in the volume list.

%%$SMS_PGM

The program name.

%%$SMS_RECORG

The organization of the data set record. Valid values are:

  • KS
  • ES
  • RR
  • LS
  • Null

%%$SMS_RETPD

The retention period.

%%$SMS_SIZE

The data set primary size in KB.

%%$SMS_SYSNAME

The system name.

%%$SMS_SYSPLEX

The Sysplex name.

%%$SMS_UNIT

The unit name.

%%$SMS_USER

The user ID.

%%$SMS_VOLUME

The volume name.

Note: %%$SMS_VOLUMEnnn resolves to volume number nnn in the volume list.

%%$SMS_NVOL resolves to the number of volumes in the volume list.

%%$SMS_XMODE

The execution mode. Valid values are:

  • BATCH
  • TSO
  • TASK

%%$SMSLEVEL

The SMS level.

Control-O can support time-simulation products such as Compuware Xchange. When the Control-O monitor starts with the TYPE parameter set to CONTROLT and a simulation product is active on the same system, the Control-O AutoEdit system variables shown in Table 188 show the value set by the simulation product and not by the system.

Table 188 Time AutoEdit System Variables

Variable

Description

%%$CENT

The first two digits in the current year. For example, 20 in the year 2000.

%%$DATE

The current system date, in the format yymmdd.

%%$DAY

The current system day, in the format dd.

%%$JULDAY

The current system day, in the format jjj.

%%$MONTH

The current system month, in the format mm.

%%$ODATE n

Date when the rule table containing the nth rule in the Rule Stack was ordered.

Note: Do not confuse this variable with %%$RDATE, which is the installation current working day.

%%$OTIME n

Time when the rule table containing the nth rule in the Rule Stack was ordered.

%%$RDATE

The installation current working date, in the format yymmdd.

Note: Do not confuse this variable with %%$ODATE, which is the date the rule was ORDERED.

%%$RDAY

The installation current working day, in the format dd.

%%$RJULDAY

The installation current working day of the year, in the Julian format jjj.

%%$RMONTH

The installation current working month, in the format mm.

%%$RULCRTDATE n

The date that the nth rule in the Rule Stack was created.

%%$RULCRTTIME n

The time that the nth rule in the Rule Stack was created.

%%$RULUPDDATE n

The date that the nth rule in the Rule Stack was last updated.

%%$RULUPDTIME n

The time that the nth rule in the Rule Stack was last updated.

%%$RWDAY

The current working day of the week, in the format d, where d is 1 through 6 or 0 For example, 1=Sunday, 2=Monday, ... 6=Friday, 0=Saturday.

Note: The start of the week depends on installation parameters specifying whether 1=Sunday or 1=Monday. Contact your INCONTROL administrator for your site standard. All references assume 1=Sunday, 2=Monday, and so on.

%%$RYEAR

The installation current working year, in the format yy.

%%$TDATE n

Date when the rule table containing the nth rule in the Rule Stack was ordered.

Note: Do not confuse this variable with %%$RDATE, which is the installation current working day.

%%$TIME

The time of day, in the format hhmmss.

%%$TTIME n

Time when the rule table containing the nth rule in the Rule Stack was ordered.

%%$WDAY

The current Gregorian day of the week in the format d, where d is from 1 through 6 or 0. For example, 1=Sunday, 2=Monday, ... 6= Friday, 0=Saturday.

%%$YEAR

The current system year, in the format yy.

Parent Topic

System Variables