Locale support for C and C++

Start of changeThe CICS translator, by default, assumes that programs written in the C or C++ language have been edited with the EBCDIC Latin-1 code page IBM®-1047.End of change

Start of changeIf you have used an alternative code page, you can specify this in a pragma filetag directive at the start of the application program. The pragma statement must be the first non-comment statement in the program, and the filetag directive must be specified before any other directive in the pragma statement. The CICS® translator scans for the presence of the filetag directive. The CICS translator only supports the default code page IBM-1047, Start of changethe Danish EBCDIC code page IBM-277,End of change the German EBCDIC code page IBM-273, and the Chinese EBCDIC code pages IBM-935 and IBM-1388.End of change

For example, if the program has been prepared with an editor using the German EBCDIC code page, it should begin with the following directive:

 ??=pragma filetag ("IBM-273")

Start of changeIf your application program uses a mix of different code pages (for example, if you are including header files edited in a code page different to that used for the ordinary source files), all of the files must include the pragma filetag directive, even if they are in the default code page IBM-1047.End of change

Start of changeSome older IBM C compilers which are no longer in service, but can still be used with the CICS translator, might not support the use of the pragma filetag directive. Check the documentation for your compiler if you are not sure whether your compiler supports this. All the IBM C/C++ compilers that are listed in the topic "High-level language support" in the CICS Transaction Server for z/OS® Release Guide which are still in service support the use of the pragma filetag directive.End of change

[[ Contents Previous Page | Next Page Index ]]