TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-96
#DEFINEMODE Built-In Variable
#DEFINEMODE Built-In Variable
Use #DEFINEMODE to obtain the current setting of DEFMODE (described with the
SET DEFMODE command), which controls the use and propagation of DEFINEs.
Result
#DEFINEMODE returns the current DEFMODE setting: OFF or ON.
Considerations
When you first log on, #DEFINEMODE is initialized to ON.
#DEFINEMODE is set to ON when TACL is started and whenever a LOGON is
done from the logged-off state.
Use #PUSH #DEFINEMODE (or PUSH #DEFINEMODE) to save the current
DEFMODE status.
Use #POP #DEFINEMODE (or POP #DEFINEMODE) to restore #DEFINEMODE
to its previous setting.
Use #SET #DEFINEMODE (or SET VARIABLE #DEFINEMODE) to establish
whether DEFINEs can be used by TACL and the processes it starts.
The syntax for #SET #DEFINEMODE is:
OFF
disables the use of DEFINEs in TACL and the propagation of DEFINEs to new
processes started by TACL (such processes have an initial DEFMODE setting
of OFF).
ON
enables the use of DEFINEs in TACL and causes it to propagate all DEFINEs
in use to any process it starts (such processes have an initial DEFMODE
setting of ON).
#DEFINEMODE
#SET #DEFINEMODE { OFF | ON }