NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-118
Considerations—COPY
If you do not specify BYTE, COPY treats each word as a single value and converts
it accordingly. If you specify BYTE but not OCTAL, DECIMAL, or HEX, the
display appears in byte-octal format.
If you specify more than one of OCTAL, DECIMAL, and HEX, each line is
displayed in each specified format in the following order: octal, decimal, and
hexadecimal.
The ASCII option has no meaning when combined with OCTAL, DECIMAL, HEX,
or BYTE.
move-option
specifies names of elements related to the table or Enscribe file and how to map
source names to different target names. move-option is identical to move-
option for the LOAD command. See LOAD Command
on page L-17 for a
description of move-option clauses and see Considerations—LOAD on
page L-31 for considerations related to move options.
Considerations—COPY
Authorization requirements
COPY requires authority to read the source file and authority to write to the target
file. If you are copying to or from a table, you must also have authority to read the
catalog in which the table is described.
Copy operations
COPY performs the following operations:
°
From an Enscribe file to a table—each source record from the file is inserted as
a row in the target table. Each elementary field value in the source record is
converted into a column value in the table row generated from the source record.
Values are also copied to the indexes of the table.
°
From a table to an Enscribe file—each row from the table is added as a record to
the target file. Each column value in the source row is converted to an
elementary field value in the target record.
°
From one table to another—each source row is inserted as a row in the target
table.
COPY versus load
You might want to use COPY instead of LOAD for these reasons:
°
You can copy data within a user-defined TMF transaction.
°
You can copy data to an unstructured file or a nondisk file.
°
You can append or insert data without erasing existing data.
Character set compatibility