Simple Types

The following are the simple types allowed in the Encore RPG Language.

Character Types:

</tr> </table> **
Numeric Types:**
[*CHAR](Character_Data_Type.html) </td> Character string. The maximum character string is 65,523.
[*BINARY](Binary_Data_Type.html) Decimal binary number (2's complement). The maximum size for a 2-byte binary is four digits, and the maximum size for a 4-digit binary is 9 digits.
[*PACKED](Packed_Data_Type.html) Decimal packed number (X "7" as the rightmost nibble is negative, X"3" as the rightmost nibble is positive). The maximum number of digits can be 31 and the maximum number of decimal positions is 9.
[*ZONED](Zoned_Data_Type.html) Decimal zoned number (H"3" as the rightmost zone is positive, H"7" as the rightmost zone is negative). The maximum number of digits can be 31 and the maximum number of decimal positions is 9.
**Special Type:**
[*IND](Ind_Data_Type.html) Indicator (can only have the special values *ON and *OFF).
### Related Sections [Commands](Commands.html) [Expressions](Expressions.html) [Type Conversions](Type_Conversions.html) ### See Also [Language Elements](ecrLrfLangElementsMain.html) [Encore RPG Language Reference](ecrLrfLangRefMain.html) [Syntactical Elements](ecrLrfSyntacticalElementsMain.html)