2.14 ALLOWNESTED
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 ofNOALLOWNESTED
will cause an error.
-
The following example illustrates a nested
OBEY
file. Assume anOBEY
file namedaddcmds.txt
. Inside this file, there is anotherOBEY
command that calls theOBEY
file namedstartcmds.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 nestedstartcmds.txt
file executes the following:obey ./startcmds.txt
start extract * info extract *, detail start replicat * info replicat *, detail
Parent topic: Common Command Line Interface Commands