IBM Support

SE56192 - OSP-DB-OTHER-INCORROUT THE WRONG CURSOR RE-USED BY A
DYNAMICALLY PREPARED SELECT CAUSES AN INCORRECT SQLCODE 100

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 APAR (Authorized Program Analysis Report)

Abstract

OSP-DB-OTHER-INCORROUT THE WRONG CURSOR RE-USED BY A
DYNAMICALLY PREPARED SELECT CAUSES AN INCORRECT SQLCODE 100

Error Description

Under certain circumstances the wrong cursor was re-used by a  
dynamically prepared SQL Select in an embedded SQL program which
caused an incorrect SQLCODE 100 (MSGSQL0100) to be issued in a  
program.                                                        

Problem Summary

Under certain circumstances the wrong cursor was re-used by a  
dynamically prepared SQL Select in an embedded SQL program which
caused an incorrect SQLCODE 100 (MSGSQL0100) to be issued in a  
program.                                                        

Problem Conclusion

PROBLEM SUMMARY:                                                
****************************************************************
* PROBLEM: (SE56192) Licensed Program = 5770SS1                *
*           Incorrect Output Causes a Severe Problem           *
****************************************************************
* USERS AFFECTED: All IBM i operating system users,            *
****************************************************************
* RECOMMENDATION: Apply PTF SI50523 for IBM i 7.1.             *
****************************************************************
                                                               
  The problem is specific to reusing SQL statement names across
many programs compiled with CLSSQLCSR(*ENDMOD).   If a compress
of the Prepared Statement Area (PSA) is done in the job it can  
lead to the wrong cursor being reused.                          
  The handling of cursors associated with these SQL statements  
with the same name has been corrected.                          

Temporary Fix

                       *********                                
                       * HIPER *                                
                       *********                                

Comments

Circumvention


PTFs Available

R710 SI50523 PTF Cover Letter   4143

Affected Modules

         
         

Affected Publications

Summary Information

Status............................................ CLOSED PER
HIPER........................................... Yes
Component.................................. 5770SS1DBSI6
Failing Module.......................... RCHMGR
Reported Release................... R710
Duplicate Of..............................




System i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG15Q","label":"APARs - OS\/400 General"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0;V7R2M0","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG16C","label":"APARs - IBM i 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0;V7R2M0","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG16E","label":"APARs - IBM i 7.2 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0;V7R2M0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
15 July 2016