String is a variable-length character field, with a maximum length between 1 and 65,535. (This is the byte length, not the number of characters.)
Strings store alpha data that is either SBCS, mixed SBCS, and DBCS, or DBCS-only. Only the current native codepage is supported.
Strings are classified as strings.
A String retains any trailing blanks, they are significant. When concatenating a String with spaces on the end, those spaces are retained. But the space is NOT SIGNIFICANT for comparisons.
Please review the general 1.1.1 Field Type Considerations.
Rules for defining a String field in the repository are:
Length | Strings may be 1 to 65,535 in length. Strings have no decimals. |
|---|---|
Valid Keyboard Shift | Blanks, O, E, J or W. |
Allowed Attributes | AB, ASQN, CS, DDNN, FE, FUNC, FUNU, FUNX, JNMC, JNMU, JNMX, JNRC, JNRU, JNRX, LC, ND, PROC, PROU, PROX, RA, RB, RL, RLTB, SREV, SUNI, USRC, USRU, USRX. |
Edit Mask | Not allowed. |
Default | *NULL |
Partition Type | |
|---|---|
Files | Strings may only be used in RDMLX Files. Strings may be used as real or key fields. If used as keys, length must be no more than 4000 bytes. |
Logical Views | Strings may be used as key fields. If used as keys, length must be less than 4000 bytes. |
Virtual Fields | Strings may be used with Code Fragment Virtual Fields. |
Predetermined Join Fields | Strings may be used for lookup predetermined joined fields. |
RDML Commands | DEF_HEAD, DEF_FOOT, DEF_BREAK, and DEF_LINE only support printing of RDML fields. Therefore, String fields need to be converted to Alpha to be used in reports. |
Built-In Functions | When used in Built-In Functions, Strings are valid for arguments of type 'A'. |
Special Values | *NULL, *NAVAIL, *REMEMBERED_VALUE |
Conversion | Refer to Field Type Conversions. |