Data Movement Utilities Guide and Reference

File Type Modifiers (Export)


Table 2. Valid File Type Modifiers (Export)
Modifier Description
All File Formats
lobsinfile lob-path specifies the path to the files containing LOB values.
DEL (Delimited ASCII) File Format
chardelx x is a single character string delimiter. The default value is a double quotation mark ("). The specified character is used in place of double quotation marks to enclose a character string.a

The single quotation mark (') can also be specified as a character string delimiter as follows:

   modified by chardel''
coldelx x is a single character column delimiter. The default value is a comma (,). The specified character is used in place of a comma to signal the end of a column.a

In the following example, coldel; causes the export utility to interpret any semicolon (;) it encounters as a column delimiter:

   db2 "export to temp of del modified by coldel;
      select * from staff where dept = 20"
datesiso Date format. Causes all date data values to be exported in ISO format ("YYYY-MM-DD").b
decplusblank Plus sign character. Causes positive decimal values to be prefixed with a blank space instead of a plus sign (+). The default action is to prefix positive decimal values with a plus sign.
decptx x is a single character substitute for the period as a decimal point character. The default value is a period (.). The specified character is used in place of a period as a decimal point character.a
dldelx x is a single character DATALINK delimiter. The default value is a semicolon (;). The specified character is used in place of a semicolon as the inter-field separator for a DATALINK value. It is needed because a DATALINK value may have more than one sub-value. a
Note:x must not be the same character specified as the row, column, or character string delimiter.
nodoubledel Suppresses recognition of double character delimiters. For more information, see Delimiter Restrictions.
WSF File Format
1 Creates a WSF file that is compatible with Lotus 1-2-3 Release 1, or Lotus 1-2-3 Release 1a.c This is the default.
2 Creates a WSF file that is compatible with Lotus Symphony Release 1.0.c
3 Creates a WSF file that is compatible with Lotus 1-2-3 Version 2, or Lotus Symphony Release 1.1.c
4 Creates a WSF file containing DBCS characters.

Notes:

  1. The export utility does not issue a warning if an attempt is made to use unsupported file types with the MODIFIED BY option. If this is attempted, the export operation fails, and an error code is returned.

  2. a Delimiter Restrictions lists restrictions that apply to the characters that can be used as delimiter overrides.

  3. b The export utility normally writes
    • date data in YYYYMMDD format
    • char(date) data in "YYYY-MM-DD" format
    • time data in "HH.MM.SS" format
    • time stamp data in "YYYY-MM-DD-HH.MM.SS.uuuuuu" format
    Data contained in any datetime columns specified in the SELECT statement for the export operation will also be in these formats.

  4. c These files can also be directed to a specific product by specifying an L for Lotus 1-2-3, or an S for Symphony in the filetype-mod parameter string. Only one value or product designator may be specified.

Delimiter Restrictions

It is the user's responsibility to ensure that the chosen delimiter character is not part of the data to be moved. If it is, unexpected errors may occur. The following restrictions apply to column, string, DATALINK, and decimal point delimiters when moving data:

The following information about support for double character delimiter recognition in DEL files applies to the export, import, and load utilities:


[ Top of Page | Previous Page | Next Page ]