A fix is available
APAR status
Closed as program error.
Error description
In DB2 Administration Tool, using EXPLAIN on PL/I program, customer reports sqlcode401 when host variable substitution of '?' occurs for SMALLINT datatype . Error messages appear similar to: . SQLCODE : -401 DSNTIAR CODE : 0 DSNT408I SQLCODE = -401, ERROR: THE OPERANDS OF AN ARITHMETIC OR COMPARISON OPERATION ARE NOT COMPARABLE . Additional symptoms: sqlcoden401 sqlcodem401 401 -401 pli option 2 panel adb222 adb22 execute SQL statements
Local fix
change '?' to ? for non CHAR / VARCHAR datatypes
Problem summary
**************************************************************** * USERS AFFECTED: Users of DB2 Admin Tool who run the Explain * * function from panel ADB222 on SQL located in * * a program. * **************************************************************** * PROBLEM DESCRIPTION: Explain gets SQLCODE -401 from Admin * * function 2.2. * **************************************************************** * RECOMMENDATION: Apply The PTF. * **************************************************************** When using option 2 on panel ADB222 to Explain SQL in a program containing host variables, DB2 issues SQLCODE -401.
Problem conclusion
The problems have been fixed.
Temporary fix
Comments
APAR Information
APAR number
PK50143
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
720
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-07-31
Closed date
2008-01-17
Last modified date
2008-02-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADB22SQL
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":"720","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
02 February 2008