Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem running SQL select on table with XML column

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
JC Coyne

New User


Joined: 25 Jan 2011
Posts: 3
Location: St. Louis MO USA

PostPosted: Wed Apr 20, 2011 10:23 pm    Post subject: Problem running SQL select on table with XML column
Reply with quote

I received a report from a user that he could not see data in a table that contains an XML column. When attempting a select * on the table in DB2 Data Studio, the following error is returned:

An error occurred while processing the results. - AN ERROR WAS FOUND IN THE APPLICATION PROGRAM INPUT PARAMETERS FOR THE SQL STATEMENT, REASON 16. SQLCODE=-804, SQLSTATE=07002, DRIVER=3.61.65

I received a similar error using WinSQL. I'm able to select individual non-XML columns, but the SQL fails when the XML column is included in the select.

Has anyone else seen a similar error, or know what input parameters to which the error is referring?

Thanks for any help you can provide.
JC
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Wed Apr 20, 2011 10:29 pm    Post subject:
Reply with quote

how big are the xml columns/how are they defined?
Back to top
View user's profile Send private message
JC Coyne

New User


Joined: 25 Jan 2011
Posts: 3
Location: St. Louis MO USA

PostPosted: Wed Apr 20, 2011 10:40 pm    Post subject:
Reply with quote

Checking the create table DDL, I see:

"PO_FORM_FIELDS" XML NOT NULL,

No column size was specified when the table was created. When I checked the field defs in WinSQL, I found PO_FORM_FIELDS has a size = 0.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1824
Location: UK

PostPosted: Wed Apr 20, 2011 11:12 pm    Post subject:
Reply with quote

Are we talking mainframe or PC here?
Back to top
View user's profile Send private message
JC Coyne

New User


Joined: 25 Jan 2011
Posts: 3
Location: St. Louis MO USA

PostPosted: Wed Apr 20, 2011 11:33 pm    Post subject:
Reply with quote

DB2 for z/OS 9.1.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us