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: 6966
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: 1722
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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm


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