IBM Support

PK64997: SYNTAX ERRORS OCCUR WHEN A DB2 APPLICATION WITH DANISH NATIONAL CHARATERS IS COMPILED

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You are migrating to DB2 V8 which requires UNICODE, and your DB2
    applications are written so that the column names in the DB2
    tables contain Danish national characters (code page 277).
    Using C source code with default CCSID 1047 will give syntax
    errors in the DB2 precompiler since the conversions of the HEX
    values in 1047 for the Danish national char will be converted to
    wrong values. Changing the C source CCSID from 1047 to 277 will
    solve this problem.
    There isn't a way to generate the correct character set out of
    DFHEDP1$ for UNICODE that is required by DB2 V8.
    Additional Symptom(s) Search Keyword(s):ccsid 1047
    KIXREVSPW
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: Compiler errors occur when applications *
    *                      are written with a Danish code page and *
    *                      the LOCALE compiler parameter is set to *
    *                      (DA_DK.IBM-277).                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The characters used in a C program are equated to EBCDIC code
    points in hex. Many code pages exist and they may contain
    characters that are unique to certain countries.
    
    A problem arises when an application is written using a Danish
    code page and the LOCALE compiler option is set, (LOCALE tells
    the compiler the nationality of the code page used to write
    the application).
    
    The application contains Danish national characters but, because
    the CICS translator currently assumes the application has been
    written using a US/English code page, the code point is
    converted to different characters.  This behavior is peculiar to
    all the 'special characters' used in the C language, (left and
    right braces and square brackets, backslash and hash).
    This bad interpretation of special characters may cause C
    compiler or run time errors.
    
    Keywords: CNN3166 CNN3766 msgCNN3166 msgCNN3766 bracket
    

Problem conclusion

  • The CICS translator has been modified and will now recognize an
    application was written using the Danish code page provided the
    application includes a ??=pragma filetag("IBM-277") statement.
    
    The following text will be added to Chapter 5 'Programming in C
    and C++' in the section 'Locale support for C and C++' in the
    CICS Transaction Server for z/OS Application Programming Guide
    (SC34-6433-03) Version 3 Release 1:
    In the second paragraph, after "the default IBM-1047" add
    ",the codeset for Denmark, IBM-277"
    
    The same change will be made to the CICS Transaction Server for
    z/OS Application Programming Guide (SC34-6818-01) Version 3
    Release 2.
    

Temporary fix

  • FIX AVAILABLE BY PTF ONLY
    

Comments

APAR Information

  • APAR number

    PK64997

  • Reported component name

    CICSTS V3 Z/OS

  • Reported component ID

    5655M1500

  • Reported release

    400

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-04-24

  • Closed date

    2008-05-23

  • Last modified date

    2008-06-02

  • APAR is sysrouted FROM one or more of the following:

    PK61013

  • APAR is sysrouted TO one or more of the following:

    UK36712 UK36716

Modules/Macros

  •    DFHEDM07 DFHEIM07
    

Publications Referenced
SC34643303SC34681801   

Fix information

  • Fixed component name

    CICSTS V3 Z/OS

  • Fixed component ID

    5655M1500

Applicable component levels

  • R400 PSY UK36712

       UP08/05/29 P F805

  • R500 PSY UK36716

       UP08/05/29 P F805

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 June 2008