2.14 ALLOWNESTED

Use the ALLOWNESTED and NOALLOWNESTED commands to enable or disable the use of nested OBEY files. A nested OBEY file is one that contains another OBEY file, see OBEY.

Syntax

ALLOWNESTED | NOALLOWNESTED
ALLOWNESTED

Enables the use of nested OBEY files. There is no maximum of the number of nested files.

NOALLOWNESTED

This is the default. An attempt to run a nested OBEY file in the default mode of NOALLOWNESTED will cause an error.

The following example illustrates a nested OBEY file. Assume an OBEY file named addcmds.txt. Inside this file, there is another OBEY command that calls the OBEY file named startcmds.txt, which executes another set of commands.

OBEY ./addcmds.txt

This OBEY statement executes the following:

add extract fin, tranlog, begin now 
add exttrail ggs/var/lib/data/aa, extract fin 
add extract hr, tranlog, begin now 
add exttrail ggs/var/lib/data/bb, extract hr 
add replicat fin2, exttrail ggs/var/lib/data/aa, begin now 
add replicat hr2, exttrail ggs/var/lib/data/bb, begin now 
The nested startcmds.txt file executes the following:
obey ./startcmds.txt 
start extract *
info extract *, detail
start replicat *
info replicat *, detail