pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
• Guardian User’s Guide (interactive information)
• Guardian Programmer’s Guide (programmatic information)
DEFINE
• Substituting File Names for DEFINE Macros (page 521)
• DEFINE Names (page 521)
To create a DEFINE message or set its attributes, you must set a CLASS attribute for the DEFINE.
The CLASS attributes are:
• MAP DEFINE (Guardian Platforms Only) (page 521)
• TAPE DEFINE (D-Series Systems Only) (page 522)
• SPOOL DEFINE (page 522)
• DEFAULTS DEFINE (page 522)
Each attribute has an initial setting based on whether the attribute is required, optional, or default.
Substituting File Names for DEFINE Macros
To substitute a file name for a DEFINE name that is being passed by a nonprivileged program to
a system procedure, use the following HP TACL commands:
PurposeHP TACL Command
Enable DEFINE processingSET DEFMODE ON
Set the initial attribute of a DEFINE command to CLASS
MAP*
SET DEFINE CLASS
Set the working attributesSET DEFINE
Specify a file name to substitute for a DEFINE nameADD DEFINE
* MAP DEFINEs are available only on Guardian platforms.
DEFINE Names
HP TACL DEFINE names:
• Are not case-sensitive
• Have 2 to 24 characters
• Begin with an equals sign (=) followed by an alphabetic character
• Continue with any combination of letters, digits, hyphens (-), underscores (_), and circumflexes
(^)
DEFINE names that begin with an equals sign followed by an underscore (=_) are reserved by HP
(for example, =_DEFAULTS).
Example 366 DEFINE Names
=A
=The_chosen_file
=Long-but-not-too-long
=The-File-of-The-Week
MAP DEFINE (Guardian Platforms Only)
When you log on, the default CLASS attribute is MAP, which requires a file name. A MAP DEFINE
substitutes a file name for a DEFINE name used in the source file. For example, suppose that your
current CLASS attribute is MAP and your source file includes the DEFINE name =MU<I in a SOURCE
directive:
HP TACL Commands 521