IBM Support

JR33134: SAVING/UPDATING AN EXISTING STORED PROCEDURE ON DB2 FOR Z/OS MIG HT FAIL WITH A SYNTAX ERROR WHEN USING VISUAL STUDIO .NET ADDINS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using the Visual Studio .NET add-ins (VSAI) to update an
    existing stored procedure on DB2 for z/OS, the stored procedure
    may fail to compile with a syntax error.
    .
    This would happen for example if you went into "Open Defintion"
    from the Server Explorer of a stored procedure, then modified
    a property of the stored procedure, and clicked on "Save".
    The problem would happen if the "SQL Body" frame contained the
    entire "CREATE PROCEDURE" statement instead of the "SQL Body".
    .
    Because the "SQL Body" frame shows the entire CREATE PROCEDURE
    statement, the syntax of the new "CREATE PROCEDURE" statement
    that is built by VSAI will contain a "CREATE PROCEDURE"
    statement embedded inside the main "CREATE PROCEDURE" statement,
    which would cause the SQL compiler to fail.
    
    Another symptom this APAR resolves is the following when saving:
    Executing SQL:GRANT EXECUTE ON PROCEDURE AATEMPSP1WIZ TO PUBLIC
    Error occurred: ERROR [42884] [IBM][DB2] SQL0440N  No authorized
    routine named "GRANT" of type "" having compatible arguments was
    found.  SQLSTATE=42884
    : IBM.Data.DB2: -2147467259
    

Local fix

  • Change the "SQL Body" frame by only including the SQL Body
    portion of the stored procedure.  The SQL Body is the code block
    between the "BEGIN" and "END".  The BEGIN and END need to be
    included as well.
    

Problem summary

  • Users Affected:  Visual Studio .NET addin users
    Problem Description:
    When using the Visual Studio .NET add-ins (VSAI) to update an
    existing stored procedure on DB2 for z/OS, the stored procedure
    may fail to compile with a syntax error.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, Fixpak 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR33134

  • Reported component name

    DB2 CPE WINDOWS

  • Reported component ID

    5724B5601

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-05-22

  • Closed date

    2009-12-21

  • Last modified date

    2009-12-21

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

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

    IC63203

Fix information

  • Fixed component name

    DB2 CPE WINDOWS

  • Fixed component ID

    5724B5601

Applicable component levels

  • 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:
21 December 2009