Enabling And Disabling Defines - HP Guardian User Manual

Hide thumbs Also See for Guardian:
Table of Contents

Advertisement

Creating and Using DEFINEs

Enabling and Disabling DEFINEs

To enable and disable DEFINEs for any process, including your TACL process, set its
DEFMODE attribute. When you set DEFMODE ON or OFF with the TACL SET
DEFMODE command, you affect the use of DEFINEs in your current TACL process
and in any processes you start:
DEFMODE
ON
DEFMODE
OFF
Note. A NonStop™ process pair is an exception. When you create a backup process (one
with the same name as the creating process), all DEFINEs are propagated to this process
regardless of the current DEFMODE setting. Thus the backup process has the same DEFINEs
as the primary process.
To determine the current DEFMODE setting for your TACL process, enter the SHOW
DEFMODE command:
10> SHOW DEFMODE
Defmode
If DEFMODE is OFF and you want to use DEFINEs, enter the SET DEFMODE ON
command:
11> SET DEFMODE ON
To prevent a process from using a DEFINE that you have created, enter a SET
DEFMODE OFF command:
12> SET DEFMODE OFF
If you use the TACL RUN command to start a process, you can specify DEFMODE ON
or DEFMODE OFF as a run option and this setting overrides your TACL DEFMODE
setting. For example, this RUN command starts a process with DEFMODE OFF. Any
DEFINEs from your TACL process are not propagated to this new process.
13> RUN ACCTPROG / IN $DISK2.FY1989.ACTSFILE, &
13> &OUT $S.LAZR, DEFMODE OFF, NOWAIT /
If you start a new process and propagate your DEFINEs to this process, a change made
to the original DEFINE in your TACL process does not affect the new process.
Conversely, a change in a DEFINE in the new process does not affect your TACL
process.
(Default) DEFINEs are enabled. The system uses existing DEFINEs in your
current TACL process and propagates them to any processes you start.
DEFINEs are disabled. The system ignores any existing DEFINEs in your
current TACL process and does not propagate them to processes you start
(except the DEFAULTS DEFINE, which is always propagated). You can still
alter, display, and delete your DEFINEs, but the system ignores them.
OFF
Guardian User's Guide —425266-001
6 -6
Enabling and Disabling DEFINEs

Advertisement

Table of Contents
loading

Table of Contents