Connection string keywords - Format properties

Use these iSeries™ Access ODBC driver connection string keywords to change Format properties of the ODBC connection.

The following table lists connection string keywords for Format properties that are recognized by the iSeries Access ODBC driver:

Table 1. iSeries Access ODBC connection string keywords for Format properties
Keyword Description Choices Default
DFT or DateFormat Specifies the date format used in date literals within SQL statements. 0 = yy/dd (*JUL)

1 = mm/dd/yy (*MDY)

2 = dd/mm/yy (*DMY)

3 = yy/mm/dd (*YMD)

4 = mm/dd/yyyy (*USA)

5 = yyyy-mm-dd (*ISO)

6 = dd.mm.yyyy (*EUR)

7 = yyyy-mm-dd (*JIS)

5
DSP or DateSeparator Specifies the date separator used in date literals within SQL statements. This property has no effect unless the DateFormat property is set to 0 (*JUL), 1 (*MDY), 2 (*DMY), or 3 (*YMD). 0 = "/" (forward slash)

1 = "-" (dash)

2 = "." (period)

3 = "," (comma)

4 = " " (blank)

1
DEC or Decimal Specifies the decimal separator used in numeric literals within SQL statements. 0 = "." (period)

1 = "," (comma)

0
TFT or TimeFormat Specifies the time format used in time literals within SQL statements. 0 = hh:mm:ss (*HMS)

1 = hh:mm AM/PM (*USA)

2 = hh.mm.ss (*ISO)

3 = hh.mm.ss (*EUR)

4 = hh:mm:ss (*JIS)

0
TSP or TimeSeparator Specifies the time separator used in time literals within SQL statements. This property has no effect unless the "time format" property is set to "hms".
  • 0 = ":" (colon)
  • 1 = "." (period)
  • 2 = "," (comma)
  • 3 = " " (blank)
0