SQL/MX 3.2 Management Manual (H06.25+, J06.14+)

Table Of Contents
Table 14 import Command Options (continued)
Descriptionimport Option
execution errors, the resultant error file can be used as an input file by a subsequent import
execution.
nl
The name of the error file must be specified in the OSS format, for example
/usr/jdoe/errfile, and must not be the same file as the one specified with the -E
error-filename option if the -E option is also specified. This output file is created by the import
utility as a non-audited, OSS unstructured file (or a Guardian file of type 180 if the error log
file is specified to be under /G). If the file already exists, import terminates with an error
message.
Directs import to ignore the specified number max-exec-errors (from 0 to 2147483646)
of ignorable execution errors without terminating. If the number of execution errors detected by
-XL
import exceeds max-execerrors, import terminates. Because of internal bundling of
multiple rows for insertion, import may report several more than max-exec-errors detected
when it does terminate.
Specifies the pathname exec-errormsg-filename of an OSS output file to which import
logs the error messages that correspond with the logged data rows that have execution errors.
-XM
The name of the error message file must be specified in the OSS format, for example
/usr/jdoe/errfile , and may be the same as the one specified with the -XE option, but
must not be the same as any other output file.
nl
This output file is created by the import utility as a non-audited, OSS unstructured file (or a
Guardian file of type 180 if the error log file is specified to be under /G). If the file already
exists, import terminates with an error message.
Specifies the character set of the data being imported. Valid values are ISO88591 or UCS2.-Z
For more information, see the SQL/MX Reference Manual.
Format File Considerations for import
For more information, see the SQL/MX Reference Manual.
Format File for a DELIM Input File
If the input file type is DELIM and you want to use a format file, you must include the [COLUMN
FORMAT] section. The other sections are optional.
Format File for a FIXED Input File
If the input file type is FIXED, you must specify a format file that includes the [COLUMN FORMAT]
and [FIXED WIDTH FORMAT] sections. The columns listed in the [COLUMN FORMAT] section must
match the columns listed in the [FIXED WIDTH FORMAT] section. The other sections are optional.
Input File Considerations for import
Fixed Input File
In a fixed input file, specified by using the -W FIXED option, different columns can have different
lengths. But for each column, all rows must be the same length. You should pad column values that
are shorter than the column width with spaces or NullValue characters to ensure that every row
has exactly the same number of bytes for a given column.
Delimited Input File
A delimited input file, specified by using the -W DELIM option or by default, uses field and row
delimiters and field qualifiers if needed. If you specify a format file, import uses the delimiters
in the file unless you also specify delimiters on the import command line, in which case the
command line specifications are used.
If you do not specify a format file, import uses the default delimiters described in the SQL/MX
Reference Manual.
Using import to Load SQL/MX Tables 193