This Natural profile parameter defines the default code page for Natural data and Natural sources.
If no code page is specified for a code page sensitive operation such as
data conversions to and from Unicode (for example, by means of a statement
specific ENCODED
option or by another profile parameter), the
default code page applies.
For the current Natural session, it is assumed that all code page data, for example, Natural sources, contents of A-format fields, etc., are stored in this code page format.
See also Profile Parameters in the Unicode and Code Page Support documentation.
Possible settings | code-page |
The name of the desired code page. Length: 1 - 64 characters. Any character string is possible, but must be predefined by one of
the code page parameters For information on multi-byte code page support, see Multi-Byte Code Pages in the Unicode and Code Page Support documentation. |
|
---|---|---|---|
ON |
Set the default code page for IBM
and Siemens mainframes as follows:
In case of Siemens mainframes, the code page is
In case of IBM mainframes, it depends on the setting of Natural
profile parameter |
||
ULANG Setting:
|
Code Page Used: | ||
ULANG=1 (English)
|
IBM01140 |
||
ULANG=2 (German)
|
IBM01141 |
||
ULANG=3 (French)
|
IBM01147 |
||
ULANG=4 (Spanish)
|
IBM01145 |
||
For other languages,
IBM01140 is used as default code page.
Anmerkung: |
|||
OFF |
Disable code page support. | ||
' ' (blank) |
Same as ON .
|
||
AUTO |
The code page name from the user terminal is taken, if available. This applies to the following online environments only: TSO, CICS, Com-plete and VM/CMS. For information on multi-byte code page support, see Multi-Byte Code Pages in the Unicode and Code Page Support documentation. Anmerkung: |
||
Default setting | OFF |
Disable code page support. | |
Dynamic specification | yes | ||
Specification within session | no |
If the CP
profile parameter is set to a value
other than OFF
, the value of the CFICU
profile parameter will
change to ON
.
If the profile parameter CP
is set to a
multi-byte code page (MBCS), the logical shift-in and shift-out characters will
be supplied with the code page and therefore SOSI
will be ignored.
You can find out the default code page that is the result of the
evaluation of the CP
parameter by viewing the content of
the system variable *CODEPAGE
or by using the Unicode
Properties function of the
SYSCP
utility.
You can use the LIST
DIRECTORY
system command or the SYSCP
utility to find out the default code page used for encoding a Natural source
object. The SYSCP
utility can also be used to change the code page
for a source object.