Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1868
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 LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us