Use of symbolic fields - syncsort_simulate_2000 - Latest

Syncsort™ Storage Management Portal 2000 Rules Language Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ software
Product
Syncsort™ Storage Management > Syncsort™ Simulate 2000
Version
Latest
ft:locale
en-US
Product name
Syncsort Storage Management
ft:title
Syncsort™ Storage Management Portal 2000 Rules Language Guide
Copyright
2025
First publish date
1991
ft:lastEdition
2025-11-28
ft:lastPublication
2025-11-28T15:31:25.787000
L1_Product_Gateway
Integrate
L2_Product_Segment
IBM Infrastructure
L3_Product_Brand
Precisely Syncsort
L4_Investment_Segment
Mainframe
L5_Product_Group
Mainframe Storage Optimization
L6_Product_Name
Syncsort Storage Management
Symbolic fields can be used in the following contexts:
  • Expressions
  • Operator commands
  • Messages
  • Rule records
  • SMF records
Symbolic fields usually start with the ampersand (&) character; the only exception is 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.

Only symbolic fields can be used on the left side of an expression. Therefore, the ampersand (&) is optional in some contexts. For example, both of the following expressions 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 is performed before expression evaluation. This allows symbolic fields on both sides of a relational operator. For example:


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:

Warning: The following message text substitutes the current job name into the message.

DEFMSG WRNMSG01 "** WARNING ** &JOBNAME INVALID"
      

When only part of a symbolic field is required, specify the displacement and length of the substring in parentheses, separated by a comma or blank. The parenthetical specification must be concatenated with the symbolic field name with no intervening blanks. For example, to evaluate the first three characters of the job name:


&JOBNAME(1,3)
    

The above examples also apply when symbolic fields reference dataset attributes (for example, VSAM owner identifiers) or other metadata: symbolic substitution always occurs first, then the resulting values are used in expression evaluation or message construction.