CLOB is a variable-length character field of undefined maximum length.
CLOBs can be used for saving files into the database and retrieving them so they can be viewed/edited/etc. In RDML and RDMLX, CLOB fields are manipulated as filenames.
Please review the general 1.1.1 Field Type Considerations.
Field Definition Rules
Rules for defining a CLOB field in the repository are:
Length |
Length cannot be specified. No decimals. |
Valid Keyboard Shift |
Blanks, O, E, J or W. |
Allowed Attributes |
AB, ASQN, CS, FE, LC, ND, RA, RL, RLTB, SUNI. Note: LC and ASQN must always be defined and cannot be removed. |
Edit Mask |
Not allowed. |
Default |
*SQLNULL. ASQN will be enabled by default. |
Field Definition Notes
Usage Rules
Partition Type |
|
Files |
CLOBS may only be used in RDMLX Files. CLOB fields may be used as real fields. CLOBS must not be used as key fields. |
Logical Views |
CLOBS must not be used as key fields. |
Virtual Fields |
Not applicable. |
Predetermined Join Fields |
Not applicable. |
RDML Commands |
If a BLOB or CLOB field is used, keep in mind that the field contains a filename, not the actual data in the object. In RDML and RDMLX, LANSA LOB fields will be manipulated as filenames. |
Built-In Functions |
When used in Built-In Functions, CLOBs are classified as their own types and are not valid for numeric or alpha arguments. |
Special Values |
*SQLNULL, *NAVAIL, *REMEMBERED_VALUE, *EMPTY |
Conversion |
CLOBs are treated as file pointers and do not support conversion to a Numeric or Date/Time field type. Refer to Field Type Conversions. |
Usage Notes
CLOBs cannot be part of any key (e.g. for Access Routes, etc.)
Platform Considerations
Tips & Techniques
Also See