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 setting. If you try to run a nested obey file, then it displays the following error
Nested OBEY scripts not allowed. Use ALLOWNESTED to allow nested scripts.
-
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.The following example creates an OBEY file (
adder.oby) to add Extract, Replicat, and trail files and includes another obey file (startcmds.oby).vi ADDER.oby DBLOGIN USERIDALIAS ggeast ADD EXTRACT exte, TRANLOG, BEGIN NOW ADD EXTTRAIL east/ea, EXTRACT exte ADD EXTRACT extw, TRANLOG, BEGIN NOW ADD REPLICAT repw, EXTTRAIL west/ew, BEGIN NOW OBEY startcmds.obyThe
startcmds.obyfile contains the following:START EXTRACT * INFO EXTRACT *, DETAIL START REPLICAT * INFO REPLICAT *, DETAILTo exectue these obey commands from the command line, you need to use the ALLOWNESTED command:
ALLOWNESTED OBEY adder.oby