Data Definition Language (DDL) Reference Manual (G06.24+)
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—426798-002
9-93
SAVE Command
SAVE Command
The SAVE command instructs the DDL compiler to save (or purge) the currently open 
dictionary when the dictionary is closed.[
SAVE
directs the DDL compiler to save the currently open dictionary when the dictionary 
is closed. SAVE is the default.
NOSAVE
directs the DDL compiler to purge the contents of the currently open dictionary 
when the dictionary is closed. The NOSAVE command is ignored if the dictionary is 
part of a Pathmaker project.
SAVE Command Guidelines
The following points are guidelines for using the SAVE command:
•
SAVE, and its inverse NOSAVE, are in effect only when DDL closes a dictionary. 
An open dictionary is closed automatically when compilation terminates; it can also 
be closed with the NODICT command or by opening another dictionary with the 
DICT command.
•
If an existing dictionary is opened for update and NOSAVE is in effect when the 
dictionary is closed, the contents of the dictionary are purged. The NOSAVE 
command is ignored if the dictionary is part of a Pathmaker project.
•
If the DDL compiler encounters an error while processing a statement that 
describes a DDL object, it does not add that object to the dictionary. If the 
dictionary is saved (either by default or because of an explicit SAVE command), it 
does not contain all the DDL objects specified in the source schema.
•
You can use the NOSAVE, ERRORS, and SAVE commands to ensure that a 
dictionary is saved only if the entire source schema is compiled without errors in 
one of two ways, as follows:
°
Put a NOSAVE command and an ERRORS 1 command at the beginning of the 
source schema.
°
Put a SAVE command at the end of the source schema.
•
If the DDL compiler encounters an error, compilation terminates while NOSAVE is 
in effect, and the dictionary is not saved. The dictionary is saved only if compilation 
completes with no errors; thus, the dictionary either contains all the requested 
objects or it is purged.
[ NO ] SAVE










