CVTOPT(*{NO}DATETIME *{NO}GRAPHIC *{NO}VARCHAR *{NO}VARGRAPHIC)
CVTOPT(*{NO}DATETIME *{NO}GRAPHIC *{NO}VARCHAR *{NO}VARGRAPHIC)
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.
Note: If the keyword CVTOPT does not contain a member from a pair, then the value specified on the command for this particular data type will be used. For example, if the keyword CVTOPT(*DATETIME : *NOVARCHAR : *NOVARGRAPHIC) is specified on the Control specification, then for the pair (*GRAPHIC, *NOGRAPHIC), whatever was specified implicitly or explicitly on the command will be used.
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.