ENCODING Subcommand (SAVE CODEPAGE command)
ENCODING
specifies the code page character encoding format of the file. The
keyword is followed by an equals sign and the keyword LOCALE
or a quoted
encoding specification.
- LOCALE
- Saves the file in the current locale encoding. This is the default setting. For more
information, see the
SET
command,LOCALE
subcommand. - 'encoding'
- The quoted encoding value can be a numeric Windows code page value (for example, '1252'), or an IANA code page value (for example, 'iso8859-1' or cp1252).
Example
SAVE CODEPAGE
/OUTFILE='/data/empl.sav'
/ENCODING='cp1252'.