The IMPORT command syntax depends on whether Teradata MultiLoad is running on a mainframe-attached or workstation-attached client system. Several of the syntax elements are common to both configurations, while others are specific.
IMPORT Syntax for Mainframe-Attached Client Systems

IMPORT Syntax for Workstation-Attached Client Systems

where the following is true:
- APPLY label
- Error treatment options specified by a previous DML LABEL command for subsequent INSERT, UPDATE, or DELETE statements
- AXSMOD name
- Name of the access module file to be used to import data. These access modules include:
- 'c'
- Optional specification of the delimiter character that separates fields in the variable-length text records of the input data source.
- DISPLAY ERRORS
- Optional keyword specification that writes input data records that produce errors to the standard error file.
- DISPLAY ERRORS EFILE efilename
- Optional keyword specification that writes input data records that produce errors to the user specified error file. If the user doesn't specify the error file name, the default error destination is the standard error file. If the user does not specify the error file name, the default error destination is the standard error file for workstation-attached platforms, and the SYSOUT for mainframe-attached platforms.
- FOR n
- Number of records, as an integer, starting at record m, to be processed.
- FORMAT…
- Format of the input record, where:
- FASTLOAD specifies that each input record is a 2-byte integer, n, followed by n bytes of data, followed by an end-of-record marker (either X'0A' or X'0D').
- BINARY specifies that each input record is a 2-byte integer, n, followed by n bytes of data.
- TEXT specifies that each record consists of an
arbitrary number of characters in the client session character set,
followed by an end-of-record marker, which is:
- On UNIX platforms, the newline character (identified in Unicode as LINE FEED U+000A)
- On Windows platforms, the two-character sequence carriage return followed by line feed (identified in Unicode as CARRIAGE RETURN U+000D and LINE FEED U+000A, respectively)
For client session character sets other than UTF16, the end-of-record marker byte sequence is:- On UNIX platforms, X'0A'
- On Windows platforms, X'0D0A'
For the UTF16 client session character set (in which each character is encoded in two bytes), the end-of-record marker byte sequence is:- On big endian UNIX platforms, X'000A'
- On little endian UNIX platforms, X'0A00'
- On Windows platforms, X'0D000A00'
TEXT format should only be specified for character data like CHAR or ANSIDATE. Do not specify TEXT format for binary data, such as, INTEGER, BYTEINT, PERIOD, and other binary data. Depending on the actual byte values of the binary data, unexpected results may occur.INDICATORS mode is not recommended when using TEXT record format. Please use UNFORMATTED record format instead. - UNFORMAT specifies that each input record is
defined by FIELD, FILLER, and TABLE commands of the specified
layout.When using UNFORMAT formatting in z/OS, ensure that the data stream and data source are consistent with the layout defined in the utility script. Discrepancies in the length of the data stream could result in data corruption.
- VARTEXT specifies that each input record is in
variable-length text record format, with each field separated by
delimiter characters, which:
- cannot be characters that appear in the data
- cannot be control characters, other than a TAB
- FREE
- Deallocation of the tape input device specified by ddname when the import operation completes on mainframe-attached client systems.
- FROM m
- Logical record number, as an integer, of the record in the identified data source where processing is to begin.
- HOLD
- Default condition to not deallocate the input tape device specified by ddname when the import operation completes on mainframe-attached client systems. Instead, the HOLD specification deallocates the device when the entire Teradata MultiLoad operation completes.
- INFILE ddname
- External data source that contains the input records on mainframe-attached client z/OS client systems. In z/OS, this is a DDNAME.
- INFILE filename
- Fully qualified UNIX or Windows path name for an input file on workstation-attached client systems
- init-string
- Optional initialization string for the access module
- INMOD modulename
- User exit routine that optionally reads, and always preprocesses, each record before passing the record to Teradata MultiLoad for processing on mainframe-attached client systems
- Fully qualified UNIX or Windows pathname of the INMOD executable code on workstation-attached client systems
- LAYOUT layoutname
- Layout of the input record, as specified by a previous LAYOUT command.
- NOSTOP
- Optional keyword specification that inhibits the Teradata MultiLoad termination in response to an error condition associated with a variable-length text record.
- QUOTE
- The QUOTE option allows the user to specify whether input data values will never be quoted (QUOTE NO), optionally be quoted (QUOTE OPTIONAL), or always be quoted (QUOTE YES).
- THRU k
- Logical record number, as an integer, of the record in the identified data source where processing is to end.
- TRIM
- The TRIM option allows the user to request that no trimming is to be done, or that leading, trailing, or both leading and trailing pad characters are to be trimmed. The default pad character is blank (space).
- USING (parms)
- Character string containing whatever parameters are to be
passed to the corresponding user exit routine:
- The parms string can include one or more character strings, each delimited on either end by an apostrophe or quotation mark.
- The maximum size of the parms string is 1 KB.
- Parentheses within delimited character strings or comments have the same syntactical significance as alphabetic characters.
- Before passing the parms string to the user exit routine, Teradata MultiLoad replaces the following with a single blank character:
- Each comment
- Each consecutive sequence of white-space characters, such as blank, tab and so on, that appears outside of delimited strings
- The parms string, as a whole, must be enclosed in parentheses. On mainframe-attached client systems, the parentheses are included in the string passed to the user exit routine.
- When the user exit routine is an old FastLoad INMOD, the parms string must be FDLINMOD.
- WHERE condition
- Condition that determines whether the indicated label options are applied to the records and sent to the database per subsequent INSERT, UPDATE, or DELETE statements where:
- condition true = yes
- condition false = no