NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
S-4
Examples—SAVE
number
is a positive integer that refers to the ordinal number of a command in the history
buffer.
-number
is a negative integer that indicates the position of a command in the history buffer
relative to the current command.
See HISTORY Command
on page H-4 for more information.
TO file
specifies a disk file, process file, or terminal name.If the file does not exist, SQLCI
creates an EDIT file.
section-name
is the simple name of a section header of the form ?SECTION section-name.
SQLCI writes the section header in the line preceding the attribute values you are
saving.
CLEAR
directs SQLCI to clear the disk or process file before saving the commands.If you
omit this parameter, SQLCI appends the commands to existing text.
You cannot clear individual sections; SQLCI clears the whole file.
The SAVE command is useful for creating an OBEY command file that contains
DEFINEs you use repeatedly or a report definition you have created using the report
options and commands.
Examples—SAVE
Suppose you enter the following commands during your SQLCI session:
>> VOLUME \SYS1.$VOL1.INVENT;
>> LOG SUBV2.MAYLOG;
>> SYSTEM \SYS1;
>> ADD DEFINE =EMPLOYEE, CLASS MAP,
+> FILE \SYS1.$VOL1.PERSNL.EMPLOYEE;
>> ADD DEFINE =ORDERS, CLASS MAP,
+> FILE \SYS1.$VOL1.SALES.ORDERS;
>> ADD DEFINE =CAT, CLASS CATALOG,
+> SUBVOL \SYS1.$VOL1.PERSNL;