IBM Support

JR31946: DB2 RREP (PRECOMPILE) OF A SYNTACTICAL CORRECT ESQL/COBOL PROGRAM MAY FAIL WITH SQL4912N

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An ESQL/Cobol program which is syntactical correct may fail to
    precompile with SQL4912N error using the DB2 PREP command.
    
    
    
    Consider the follwing ESQL/Cobol program which should normally
    compile fine. However the precompile step may fail erronously on
    the first "PIC X(1)" clause.
    
    
           IDENTIFICATION DIVISION.
           PROGRAM-ID. MYPROG IS INITIAL.
           AUTHOR. ABCDE.
           ENVIRONMENT DIVISION.
           CONFIGURATION SECTION.
           DATA DIVISION.
    
           WORKING-STORAGE SECTION.
    
               EXEC SQL
               BEGIN DECLARE SECTION
               END-EXEC
    
           01  HVM01.
               07 MANDT     PIC  X.
               07 ANRED     PIC  X(1).
               07 ANREDE    PIC  X(1).
    
               EXEC SQL
               END DECLARE SECTION
               END-EXEC
    
           PROCEDURE DIVISION.
    
           MAIN SECTION.
           MAIN-01.
           MAIN-999.
                EXIT PROGRAM.
    
    This problem was reported on the Windos Operating System but it
    can potentially happen on all operating systems.
    

Local fix

Problem summary

  • Users Affected: ALL
    
    Problem Description: See Error Description.
    
    Problem Summary:  See Error Description.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 5 (build s091123)
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR31946

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-02-09

  • Closed date

    2009-12-15

  • Last modified date

    2009-12-15

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

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

    JR31961

Fix information

  • Fixed component name

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 December 2009