Sign in

docs RPG Reference

OPENOPT (*{NO}INZOFL *{NO}CVTDATA)

OPENOPT (*{NO}INZOFL *{NO}CVTDATA)

You can specify any or all of the options in any order. However, if an option is specified, the *NOxxxx option cannot also be specified, and vice versa. For example, you can only specify one of *INZOFL and *NOINZOFL. Separate the options with a colon.

*CVTDATA : The *{NO}CVTDATA option sets the default for the DATA keyword for database files (defined as DISK or SEQ). If you specify *CVTDATA, DATA(*CVT) is the default for database files. If you specify *NOCVTDATA, DATA(*NOCVT) is the default for database files.

If you do not specify \*CVTDATA or \*NOCVTDATA, and you
specify control keyword
[CCSID(\*EXACT)](/doc/en/docs/rpg-reference/hccsidexact/)
then OPENOPT(\*CVTDATA is assumed.

If you do not specify \*CVTDATA or \*NOCVTDATA, and you do not
specify CCSID(\*EXACT), and a database file does not have
the DATA keyword explicitly specified, then the file is considered
not to have the DATA keyword in effect.

See [DATA(\*CVT | \*NOCVT)](fkwdata.htm) for more information.

*INZOFL : For a program that has one or more printer files defined with an overflow indicator (OA-OG or OV), the keyword specifies whether the overflow indicator should be reset to *OFF when the file is opened. If the OPENOPT keyword is specified, with *NOINZOFL, the overflow indicator will remain unchanged when the associated printer file is opened. If not specified or specified with *INZOFL, the overflow indicator will be set to *OFF when the associated printer file is opened.