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
OBEYfiles. There is no maximum of the number of nested files. -
NOALLOWNESTED -
This is the default. An attempt to run a nested
OBEYfile in the default mode ofNOALLOWNESTEDwill cause an error.
-
The following example illustrates a nested
OBEYfile. Assume anOBEYfile namedaddcmds.txt. Inside this file, there is anotherOBEYcommand that calls theOBEYfile namedstartcmds.txt, which executes another set of commands.OBEY ./addcmds.txtThis
OBEYstatement 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 nowThe nestedstartcmds.txtfile executes the following:obey ./startcmds.txtstart extract * info extract *, detail start replicat * info replicat *, detail
Parent topic: Common Command Line Interface Commands