IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem running SQL select on table with XML column


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Wed Apr 20, 2011 10:29 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 20, 2011 11:12 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top