Following are the basic field type groupings used in LANSA:
Character/String | Store alpha data that is either SBCS, mixed SBCS and DBCS, or DBCS-only. Includes types Alpha, String, Char, and CLOB. |
|---|---|
Unicode Character/String | Store alpha data in Unicode. (Character/String are stored in the native codepage.) Multiple languages can be handled without data loss. Includes types NChar and NVarChar. See also Unicode Field Types. |
Numeric | Store numeric data in a variety of formats. Includes types Signed, Packed, Integer, and Float. |
Date/Time | Store date and time data. Includes types Date, Time, DateTime. |
Binary | Store binary data. (This data is not subject to codepage conversion.) Includes type Binary, VarBinary, BLOB. |
LOB | Store very large characters or binary data. Includes types CLOB, BLOB. |
Boolean | Store a True or False value. |
The following table summarizes field conversions between groups. Yes indicates that conversion between the field type groups is allowed. It does not indicate that conversion will always be successful. For example, you cannot convert DBCS data to SBCS data, or a value like "Hello world" to a Numeric.
From: | Character | Unicode Character | Numeric | Date/Time | Binary | LOB 4 | Boolean |
|---|---|---|---|---|---|---|---|
Character | Yes | Yes 5 | Yes 1 | Yes 1 | Yes | Yes | Yes |
Unicode Character | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Numeric | Yes | Yes | Yes | Yes 2 | No | No | Yes |
Date/Time | Yes | Yes | Yes 2 | Yes 3 | No | No | No |
Binary | Yes | Yes | No | No | Yes | No | No |
LOB 4 | Yes | Yes 5 | No | No | Yes | Yes | No |
Boolean | Yes | Yes | Yes | No | No | No | Yes |