beautypg.com

Enabling and disabling defines – HP NonStop G-Series User Manual

Page 94

background image

Creating and Using DEFINEs

Guardian User’s Guide 425266-001

6 -6

Enabling and Disabling 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:

To determine the current DEFMODE setting for your TACL process, enter the SHOW
DEFMODE command:

If DEFMODE is OFF and you want to use DEFINEs, enter the SET DEFMODE ON
command:

To prevent a process from using a DEFINE that you have created, enter a SET
DEFMODE OFF command:

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.

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.

DEFMODE
ON

(Default) DEFINEs are enabled. The system uses existing DEFINEs in your
current TACL process and propagates them to any processes you start.

DEFMODE
OFF

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.

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.

10> SHOW DEFMODE
Defmode OFF

11> SET DEFMODE ON

12> SET DEFMODE OFF

13> RUN ACCTPROG / IN $DISK2.FY1989.ACTSFILE, &
13> &OUT $S.LAZR, DEFMODE OFF, NOWAIT /

This manual is related to the following products: