pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
DEFINETOG
DEFINETOG specifies toggles for use in conditional compilation. If DEFINETOG is specifying a
toggle for the first time, its setting is off. DEFINETOG has no effect on toggles already in use.
toggle-name
is an identifier with a maximum of 31 characters in length.
The only characters allowed in a toggle-name are alphabetic (“A” through “Z” and “a” through
“z’), numeric (‘0” through “9”), underscore (“_”), and circumflex (“^”); the first character must
be alphabetic.
Names are case-insensitive (For example, abc is the same as Abc.)
toggle-number
is an unsigned decimal constant in the range 1 through 15. Leading zeros are ignored.
target
is as defined in “TARGET” (page 423).
PTAL
is a toggle implicitly defined and set by the TAL, pTAL and EpTAL compilers. It is set on if the
compiler in use is any pTAL or EpTAL compiler, otherwise it is set off.
It can be used with the directives “IF and IFNOT” (page 398) to conditionally compile code.
Source code enclosed within the IF PTAL directive is compiled only when using the pTAL or
EpTAL compilers. Likewise, source code enclosed within the IFNOT PTAL directive is compiled
only when using the TAL compiler.
IFNOT pTALIF pTALCompiler
FalseTruepTAL or EpTAL
TrueFalseTAL
__EXT64
is a toggle implicitly defined and set by the EpTAL compiler starting with SPR T0561H01^AAP.
It is set on if the corresponding __EXT64 directive has been specified otherwise, it is set off.
388 Compiler Directives