The codeset module must be compiled using DIALECT"MF", and the NOCANCEL directive; otherwise, you may experience RTS114 abends when the module is first called when running through an enterprise server region.
The sample program CSnnnn.cbl, which is supplied in the src\codeset sub-directory of your installation directory, contains the necessary sections, declarations and directives.
mkdir mylang cd mylang
export MFCODESET=nnnn
where nnnn refers to an MFCODESET value (listed in the Supported Country Codes topic) whose character set conversion tables are most similar to the customized versions you want to create.
codecomp /p mapfile.a2e mapfile.e2a
The files mapfile.a2e and mapfile.e2a are created in the current directory.
codecomp mapfile.a2e mapfile.e2a
A codeset.cpy file is created in the current directory.
cp $COBDIR/src/codeset/csnnnn.cbl csnnnn.cbl
where $COBDIR is your installation directory and nnnn is a number between 2000 through 9999 (excluding 9122) that you use to refer to your customized codeset module.
cob -z csnnnn.cbl