SET EQUATE command
Equates a symbol to a string of characters. The equated symbol
can be used anywhere a keyword, identifier, or punctuation is used
in a z/OS® Debugger command.
When an equated symbol is found in a z/OS Debugger command
(other than the identifier operand in SET
EQUATE and CLEAR EQUATE), the equated symbol
is replaced by the specified string before parsing continues.
- identifier
- An identifier that is valid in the current programming language.
The maximum length of the identifier is:
- For C, 32 SBCS characters
- For COBOL and LangX COBOL, 30 SBCS characters
- For PL/I, 31 SBCS characters
The identifier can contain DBCS characters.
- string
- A string constant in the current programming language. The maximum length of the replacement string is 255 SBCS characters.
Usage notes
- Operands of the following commands are for environments other
than the standard z/OS Debugger environment
(that is, TSO DS name, and so forth) and are not scanned for
EQUATEd symbol substitution:COMMENTINPUTSET DEFAULT LISTINGSSET INTERCEPT ON/OFF FILESET LOG ON FILESET SOURCE (cu_spec)SYSTEM/SYSTSOUSE
- To remove an
EQUATEdefinition, use theCLEAR EQUATEcommand. - To remain accessible when the current programming language setting is changed, symbols that are equated when the current programming language setting is C must be entered in uppercase and must be valid in the other programming languages.
- If an
EQUATEidentifier coincides with an existing keyword or keyword abbreviation,EQUATEtakes precedence. If theEQUATEidentifier is already defined, the new definition replaces the old. - The equate string is not scanned for, or substituted with, symbols
previously set with a
SET EQUATEcommand.
Examples
- Specify that the symbol
INFOis equated to "ABC, DEF (H+1)". The current programming language setting is either C or COBOL.SET EQUATE INFO = "ABC, DEF (H+1)"; - Specify that the symbol
tstlenis equated to the equivalent of a#definefor structure pointing. The current programming language setting is C. If the programming language changes, this lowercase symbol might not be accessible.SET EQUATE tstlen = "struct1->member.b->c.len"; - Specify that the symbol
VARVALUEis equated to the commandLIST x.SET EQUATE VARVALUE = "LIST x";
