Content
Added the compilation option ENCODE to define the encoding form of the data item.
With the specification of compilation option ENCODE, the runtime code set is changed.
When the compilation option RCS is explicitly specified.
The runtime code-set becomes the code-set that is specified with the RCS compilation option.
When the compilation option RCS is not specified explicitly.
When the compilation option ENCODE is specified explicitly, then the runtime code-set becomes the Unicode.
When the compilation option ENCODE is not specified explicitly, then the runtime code-set becomes Shift-JIS.
Conditions
In compiler versions prior to 10.5.0, the compilation option RCS (SJIS) is specified explicitly or implicitly and it is a program asset.
And, in compiler versions 11.0.0 and forward, without specifying the compilation option RCS (SJIS) explicitly, for the program assets of 1 above, the compilation option ENCODE(SJIS[,SJIS]) is described explicitly and recompiled.
Impact
The impact corresponding to the above conditions is as follows.
An error (JMP0081I-U) occurs in the following situations.
When the recompiled program is called from a program that is not recompiled.
When a program that is not recompiled is called from a program that is recompiled.
During execution after the main program is recompiled, the source becomes the Unicode.
For details, refer to " Unicode" in the " NetCOBOL User's Guide".
Action
Create the target program without explicitly specifying the compilation option ENCODE.
Moreover, in regards to the repository, keep the compilation option RCS and the compilation option ENCODE specified on the reference and remote side the same.