IBM Support

JR31961: 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:
    
    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.
    
    Problem Summary:  See Problem Description.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.1, FixPak 8 (build s090823)
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR31961

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-02-10

  • Closed date

    2009-10-05

  • Last modified date

    2009-10-05

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

    JR31946

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

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

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910"}]

Document Information

Modified date:
07 October 2021