The CVTOPT keyword is used to determine how the ILE RPG compiler handles date, time, timestamp, graphic data types, and variable-length data types that are retrieved from externally described database files.
You can specify any or all of the data types in any order. However, if a data type is specified, the *NOxxxx parameter for the same data type cannot also be used, and vice versa. For example, if you specify *GRAPHIC you cannot also specify *NOGRAPHIC, and vice versa. Separate the parameters with a colon. A parameter cannot be specified more than once.
If *DATETIME is specified, then date, time, and timestamp data types are declared as fixed-length character fields.
If *NODATETIME is specified, then date, time, and timestamp data types are not converted.
If *GRAPHIC is specified, then double-byte character set (DBCS) graphic data types are declared as fixed-length character fields.
If *NOGRAPHIC is specified, then double-byte character set (DBCS) graphic types are not converted.
If *VARCHAR is specified, then variable-length character data types are declared as fixed-length character fields.
If *NOVARCHAR is specified, then variable-length character data types are not converted.
If *VARGRAPHIC is specified, then variable-length double-byte character set (DBCS) graphic data types are declared as fixed-length character fields.
If *NOVARGRAPHIC is specified, then variable-length double-byte character set (DBCS) graphic data types are not converted.
If the CVTOPT keyword is not specified, then the values specified on the command are used.