Command Syntax
>>-IMPORT FROM--filename--OF--filetype--------------------------> >-----+-----------------------------+---------------------------> | .-,-----------. | | V | | '-LOBS FROM-----lob-path---+--' >-----+-----------------------------------+---------------------> | .-----------------. | | V | | '-MODIFIED BY-----filetype-mod---+--' >-----+-----------------------------------------------------------------------------------------------+> | .-,---------------------------. | | V | | '-METHOD--+-L--(-----column-start--column-end---+---)--+-----------------------------------+-+--' | | .-,----. | | | | V | | | | '-NULL INDICATORS--(-----n---+---)--' | | .-,--------------. | | V | | +-N--(-----column-name---+---)-----------------------------------------------------+ | .-,------------------. | | V | | '-P--(-----column-position---+---)-------------------------------------------------' >-----+-----------------+---+------------------+----------------> '-COMMITCOUNT--n--' '-RESTARTCOUNT--n--' >-----+-------------------------+-------------------------------> '-MESSAGES--message-file--' >-----+--+-INSERT---------+--INTO--+-table-name--+------------------------------+-+-------------------+> | +-INSERT_UPDATE--+ | | .-,----------------. | | | | +-REPLACE--------+ | | V | | | | | '-REPLACE_CREATE-' | '-(-----insert-column---+---)--' | | | '-| hierarchy description |--------------------' | | | '-CREATE--INTO--+-table-name--+------------------------------+----------+---| tblspace-specs |--' | | .-,----------------. | | | | V | | | | '-(-----insert-column---+---)--' | '-| hierarchy description |--+-AS ROOT TABLE----------+-' '-UNDER--sub-table-name--' >-----+--------------------------------------------+----------->< '-DATALINK SPECIFICATION--| datalink-spec |--' hierarchy description .-ALL TABLES---------. |---+-| sub-table-list |-+--+----+------------------------------> '-IN-' >----HIERARCHY--+-STARTING--sub-table-name--+-------------------| '-| traversal-order-list |--' sub-table-list .-,--------------------------------------------------. V | |---(-----sub-table-name--+------------------------------+--+---)--> | .-,----------------. | | V | | '-(-----insert-column---+---)--' >---------------------------------------------------------------| traversal-order-list .-,-----------------. V | |---(-----sub-table-name---+---)--------------------------------| tblspace-specs |---+--------------------------------------------------------------------------------------+-> '-IN--tablespace-name--+----------------------------+---+---------------------------+--' '-INDEX IN--tablespace-name--' '-LONG IN--tablespace-name--' >---------------------------------------------------------------| datalink-spec .-,--------------------------------------------------------------------------------------------------. V | |------(--+-----------------+--+----------------------------------+---+--------------------------+---)---+-> '-DL_LINKTYPE URL-' +-DL_URL_REPLACE_PREFIX--"prefix"--+ '-DL_URL_SUFFIX--"suffix"--' '-DL_URL_DEFAULT_PREFIX--"prefix"--' >---------------------------------------------------------------|
Command Parameters
Note: | If the data was exported from an MVS host database, and it contains LONGVAR fields whose lengths, calculated on the page size, are less than 254, CREATE may fail because the rows are too long. In this case, the table should be created manually, and IMPORT with INSERT should be invoked, or, alternatively, the LOAD command should be used. |
There can be as many DATALINK column specifications as the number of DATALINK columns defined in the table. The order of specifications follows the order of DATALINK columns found within the insert-column list, or within the table definition (if an insert-column list is not specified).
Examples of prefix are:
"http://server" "file://server" "file:" "http://server:80"
If no prefix is found in a column's data, and a default prefix is specified with DL_URL_DEFAULT_PREFIX, the default prefix is prefixed to the column value (if not NULL).
For example, if DL_URL_DEFAULT_PREFIX specifies the default prefix "http://toronto":
For example, if DL_URL_REPLACE_PREFIX specifies the prefix "http://toronto":
Note: | Specifying which table space will contain an index can only be done when the table is created. |
One can use an alias for INSERT, INSERT_UPDATE, or REPLACE, except in the case of a down-level server, when the fully qualified or the unqualified table name should be used. A qualified table name is in the form: schema.tablename. The schema is the user name under which the table was created.
Note: | This method can only be used with ASC files, and is the only valid option for that file type. |
Note: | This method can only be used with IXF files. |
Note: | This method can only be used with IXF or DEL files, and is the only valid option for the DEL file type. |
While processing each row, a Y indicates that the column data is NULL, while an N indicates that the column data is not NULL, and that column data specified by the METHOD L option will be imported.
For more information about file formats, see Appendix C. Export/Import/Load Utility File Formats.
If the table does not exist, creates the table and index definitions, as well as the row contents.
This option can only be used with IXF files. It is not valid for tables with DATALINK columns. If this option is used when moving data between hierarchies, only the data for an entire hierarchy, not individual subtables, can be replaced.