A fix is available
APAR status
Closed as program error.
Error description
A CM batch or compare run job may display a SQLCODE -501 / SQLCODEN501 error when trying to fetch the ADBHOLD table: ADB5146E Unexpected SQLCODE -501 in :CLOSE CURSOR prtADBHOLD DSNT408I SQLCODE = -501, ERROR: THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS NOT OPEN DSNT418I SQLSTATE = 24501 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXERT SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = -315 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'FFFFFEC5' X'00000000' X'00000000' X'FFFFFFFF X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION ADB5185E The run is ending due to errors. This error, however, may be due to an unavailable resource (such as an index). A SQLCODE -904 /SQLCODEN904 error should actually be displayed: ADB5146E Unexpected SQLCODE -904 in : Fetch prtADBHOLD DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON 00C90081, TYPE OF RESOURCE 00000201, AND RESOURCE NAME schema.ADBHLDX1 DSNT418I SQLSTATE = 57011 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXRRC SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = 112 13172746 0 13820889 -1041948668 12714050 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'00000070' X'00C9000A' X'00000000' X'00D2E3D9' X'C1E52004' X'00C20042' SQL DIAGNOSTIC INFORMATION ADB5185E The run is ending due to errors.
Local fix
N/A
Problem summary
**************************************************************** * USERS AFFECTED: Users of the Db2 Administration Tool for * * z/OS and Db2 Object Comparison Tool for z/OS * * who run a WSL. * **************************************************************** * PROBLEM DESCRIPTION: Batch Restart Program (ADBTEP2) may * * report a -501 SQL error instead * * of the underlying -904 error. * **************************************************************** * RECOMMENDATION: * **************************************************************** Batch Restart Program (ADBTEP2) accesses ADBHOLD table to track restart information. When a SQLCODE = -904 / SQLCODEN904 error is encountered while fetching the table contents, the error is not captured and reported to the user. As a result, ADBTEP2 reports the below SQCLODE = -501 / SQLCODEN501 error when closing the cursor: ADB5146E Unexpected SQLCODE -501 in :CLOSE CURSOR prtADBHOLD DSNT408I SQLCODE = -501, ERROR: THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS NOT OPEN
Problem conclusion
Problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PH00736
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-07-19
Closed date
2018-10-05
Last modified date
2018-11-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADBTEP2
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
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.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
01 November 2018