Use of symbolic fields
Use of symbolic fields
Expressions, operator commands, messages, rule assignments and SMF records can use symbolic fields. Symbolic fields usually start with the ampersand (&) character, the only exception being an expression.
When symbolic fields are used in the rules language, the entire symbolic
name need not be entered -- only enough of the name to ensure that the
field is unique. For example, a symbolic name of
&JOBN can be used to specify
&JOBNAME.
Since only symbolic fields can be used on the left side of an expression, the ampersand character is optional. For example, both of the following expressions will compare the user’s account number to the literal “SY-0286-DJT”.
IF &ACCT = SY-0286-DJT
IF ACCT = SY-0286-DJT
When evaluating an expression, symbolic substitution will be performed before evaluating the expression. This facility allows symbolic fields to be placed on both sides of the relational operator. In the following example, the expression will compare the OWNERID for a VSAM file with the current job name.
IF &OWNER NE &JOBNAME
The DEFCMD, DEFMSG,
DEFREC and DEFSMF statements can use
symbolic fields to build operator commands, messages, rule records and SMF
records. For example, the following message will perform symbolic
substitution for the current job name.
DEFMSG WRNMSG01 “** WARNING ** &JOBNAME INVALID”
When just part of a symbolic field is required, the displacement and length of the substring can be specified with the symbolic name. The displacement and length should be enclosed in parentheses, and be separated by a comma or blank. The parenthetical field must be concatenated with the symbolic field name, and cannot be separated with blanks. For example, the following symbolic name will be evaluated for the first three characters of the job name.
&JOBNAME(1,3)
Symbolic field tables
Since SCC-DLimit has a large number of symbolic field names, the symbolic fields have been divided into several tables. These tables should help you in locating a particular symbolic field name.
The order of the tables listed in this section is very important. When a symbolic field is accessed, the tables are searched in sequence. The first table that contains an entry for the symbolic field will be used by the product. When the rules language attempts to modify the data associated with the symbolic field, the first table entry that can be updated will be used for the update.
VOLSER
or UVOLSER.SCC-DLimit rules language variables
The following charts show the variable names that may be specified in
the SCC-DLimit rules. In addition to the variables in
these charts, many of the symbolic variables found in Chapter 8 of the
Dynamic Install Facility (DIF) User’s Guide and
Chapter 7 of the ACC/SRS User’s Guide may also be
used. Because SCC-DLimit gets control during
IGGPRE00 processing, all of the variables available
during the ACC/SRSDADSM environment may be used, as well as many of the
variables in the ACC/SRSDD and IDCAMS environments.
In the tables below, the following definition is used:
Account-name An alphanumeric string of 1 to 30 characters, representing an account in the SCC-DLimit database.
System wide variables
The symbolic variables that will most commonly be set by
SCC-DLimit are the DACCT and
MODEL variables. Setting these variables assigns the
space request to an account in the database and allows the space to be
tracked. The variables prefixed by SYS_ refer to values
in the $CONTROL record, and allow access to the values
that were set by the DLSYS command.
Table 9-1. Symbolic names for system-wide variables
| SYMBOLIC NAME | TYPE | DESCRIPTION |
|
|
|
Specifies the name of the account assigned to the dataset.
The SCC-DLimit rules may assign a dataset
to up to 10 different accounts. ( |
|
|
|
Specifies the name of the account assigned to the dataset. If specified, “n” must be a numeric value from 1 to 10. The SCC-DLimit rules may assign a dataset to up to 10 different accounts. |
|
|
|
Environment name, i.e., the type of processing which is being performed by SCC-DLimit. Valid values:
|
|
|
|
Sub-environment name. A further breakdown of the type of processing which is being performed by SCC-DLimit. Valid values:
|
|
|
|
Specifies whether or not the job is to terminate with a JCL
error. (
|
|
|
|
The type of device on which the migrated dataset currently
being processed by the
|
|
|
|
The migration level on which the migrated dataset being
processed by the
|
|
|
|
Contains the name of a model account in the SCC-DLimit database. The characteristics of the model account are used when new accounts are created and a model account is assigned. |
|
|
|
NEW DSNAME ON |
|
|
|
HLQ FOR THE NEW DSNAME ON |
|
|
|
LAST QUALIFIER FOR THE NEW DSNAME ON RENAME REQUEST. |
|
|
|
nTH QUALIFIER FOR THE NEW DSNAME ON RENAME REQUEST. |
|
|
|
DATA SET REQUESTED SPACE IN GIGABYTES. |
|
|
|
DATA SET REQUESTED SPACE IN KILOBYTES. |
|
|
|
DATA SET REQUESTED SPACE IN MEGABYTES. |
|
|
|
DATA SET REQUESTED SPACE IN TRACKS. |
|
|
|
Indicates whether new accounts may be automatically created
in the SCC-DLimit database when a
|
|
|
|
Specifies that the system-wide setting for the action that
SCC-DLimit is to take when a request for
space causes an account to exceed its limit is to override the
settings specified for an account
(
|
|
|
|
Indicates the system-wide setting for the action that
SCC-DLimit is to take when a request for
space causes an account to exceed its limit. The system-wide
setting (
|
|
Note: 1 This field is read only.
SET processing
will not allow the field to be modified. |
||
Account variables
The account variables describe the contents of a record in the
SCC-DLimit database. During allocation processing,
these variables can be examined to determine the characteristics of the
account assigned to the dataset. (In this case, the rules must first
assign the account to a dataset via a SET DACCT=
statement.)
These variables may also be set when a new account is created. This
occurs when SET DACCT= refers to a non-existent account
and the $CONTROL record indicates that
AUTOCREATE(YES) was specified on the
DLSYS command. Setting the ACCT_
variable when a new account is being created overrides the value of the
variable that may otherwise have been obtained from a
MODEL account if specified.
It may also be useful to set the ACCT_ variables
during DLMAINT SCAN processing in order to change the
values for a large number of accounts. The values for an individual
account can also be changed via the DLALTERTSO command or the ISPF
interface.
Table 9-2. Symbolic names for account variables
| SYMBOLIC NAME | TYPE | DESCRIPTION |
|
|
|
Indicates whether the account was created automatically by SCC-DLimit when space was requested for a dataset. Valid values:
|
|
|
|
The date on which the SCC-DLimit account
associated with the dataset was created. Valid values:
|
|
|
|
The time at which the SCC-DLimit account
associated with the dataset was created. Valid values:
|
|
|
|
Specifies a description for the account. |
|
|
|
The DD name of a log file allocated to the DIF started task. Warning and error messages issued when space usage in an account exceeds the allowed limit are written to the specified dataset. |
|
|
|
Specifies the setting for the action that
SCC-DLimit is to take when a request for
space causes the account to exceed its allowable limit. If
|
|
|
|
Specifies the name of the account assigned to the dataset. |
|
|
|
Indicates that the account is a new account which has not yet been recorded in the SCC-DLimit database. Valid values:
|
|
|
|
Indicates whether warning messages should be issued when the total space usage in the account exceeds the allowable limit. Valid values:
|
|
|
|
The date on which the SCC-DLimit account
was last accessed (i.e., the date on which space was last
added to or subtracted from the account). Valid values:
|
|
|
|
The time at which the SCC-DLimit account
was last accessed (i.e., the time at which space was last
added to or subtracted from the account). Valid values:
|
|
|
|
The TSO userid to be notified when space usage in the account exceeds the allowed limit. |
|
|
|
Percentage of the maximum allowable disk space limit for the account at which warning messages will be issued by SCC-DLimit. Valid values: 0-100. |
|
Note: 1 This field is read only.
SET processing
will not allow the field to be modified. |
||
Account space variables
These variables may also be set when a new account is created. This
occurs when SET DACCT= refers to a non-existent account
and the $CONTROL record indicates that
AUTOCREATE(YES) was specified on the
DLSYS command. Setting the ACCT_
variables when a new account is being created overrides the value of the
variables that would otherwise have been obtained from a
MODEL account if one was assigned.
It may also be useful to set the ACCT_ variables
during DLMAINT SCAN processing in order to change the
values for a large number of accounts. The values for an individual
account can also be changed via the DLALTERTSO command or the ISPF
interface.
Table 9-3. Symbolic names for account space variables
| SYMBOLIC NAME | TYPE | DESCRIPTION |
|
|
|
The amount of space currently occupied by datasets associated with the account. |
|
|
|
The amount of space currently occupied by datasets associated with the account (packed format). |
|
|
|
The amount of space currently occupied by datasets associated with the account (numeric tracks). |
|
|
|
The “high-water-mark” for the account, i.e., the largest amount of space that has ever been recorded in the account. Valid values: 0 to 2**31-1. |
|
|
|
The “high-water-mark” for the account in packed format. Valid values: 0 to 2**31-1. |
|
|
|
The “high-water-mark” for the account in numeric tracks. Valid values: 0 to 2**31-1. |
|
|
|
The date on which the “high-water-mark”, i.e., the greatest
space usage for the account, was recorded. Valid values:
|
|
|
|
The time at which the “high-water-mark”, i.e., the greatest
space usage for the account, was recorded. Valid values:
|
|
|
|
The maximum amount of space which datasets associated with the account are allowed to occupy. |
|
|
|
The maximum amount of space which datasets associated with the account are allowed to occupy (packed format). |
|
|
|
The maximum amount of space which datasets associated with the account are allowed to occupy (numeric tracks). |
|
Note: 1 This field is read only.
SET processing
will not allow the field to be modified. |
||