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 types Binary, VarBinary, BLOB. |
LOB |
Store very large character 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.
General Conversion Rules
|
Table notes:
1. CLOBs are treated as file pointers, so do not support conversion to a Numeric or Date/Time field type.
2. No support for conversion
3. DateTime -> Date and DateTime -> Time are obvious.
4. The "value" for a LOB is a filename. Thus, when converting it is the filenames that are being copied, not the data. If an invalid filename is copied to a LOB, an error will occur at some stage.
5. When converting a Unicode string to a native string, the intrinsic AsNativeString may need to be used.