PM86862: CALLING A NATIVE SQL PROCEDURE GETS SQLCODE518

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Calling the procedure from QMF and moving to the end of
    the report ends with SQLCODE = -518 which says that the
    statement is not in a prepared state.
    
     -518 SQLCODE-518
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All QMF for TSO/CICS V9.1 users calling      *
    *                 stored procedures.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Users calling stored procedures and     *
    *                      paging through the report output or     *
    *                      resetting data may get an unexpected    *
    *                      SQL code -518.                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    User ran a query with the CALL statement to run a stored
    procedure. User was pressing PF8 FORWARD key to page through the
    report when they received DSQ10496 'Error processing FORWARD
    command. Press the HELP key for more information.' After
    pressing PF1 HELP, the user saw:
    *************************************************************
     EXECUTE STATEMENT DOES NOT IDENTIFY A VALID PREPARED STATEMENT.
    Explanation:
      o   DB2 Message ID:   DSN00518
      o   SQLERRD1/SQLERRD2/SQLERRD3: FFFFFEE8 00000000 00000000
      o   SQLERRD4/SQLERRD5/SQLERRD6: FFFFFFFF 00000000 00000000
      o   DB2 Reason Code: 0
      o   DB2 Product ID: DSN09015
       For more information on the error, refer to "DB2 Messages
        and Codes" publication.
    *************************************************************
    This error might also happen on the RESET DATA command after
    calling a stored procedure.
    

Problem conclusion

  • QMF was improperly setting internal flags to indicate the the
    stored procedure processing was complete when it was not. QMF
    has been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM86862

  • Reported component name

    QMF-QUERY MGMT

  • Reported component ID

    566872101

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-11

  • Closed date

    2013-05-07

  • Last modified date

    2013-06-04

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

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

    UK94111

Modules/Macros

  •    DSQDCALL DSQFENDO
    

Fix information

  • Fixed component name

    QMF-QUERY MGMT

  • Fixed component ID

    566872101

Applicable component levels

  • R910 PSY UK94111

       UP13/05/08 P F305

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.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 Query Management Facility
QMF for TSO/CICS

Software version:

9.1

Reference #:

PM86862

Modified date:

2013-06-04

Translate my page

Machine Translation

Content navigation