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

Syncsort - DB2 QUERY ERROR While unloading data from table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thala_ds

New User


Joined: 05 Jun 2012
Posts: 18
Location: India

PostPosted: Thu Sep 27, 2012 11:16 am
Reply with quote

Hi,

I tried to unload data from DB2 table using Syncsort and i got the below error :
DB2 QUERY SUPPORT ERROR: UNKNOWN DATA TYPE FOUND

Could somebody help me out in resolving the above issue?

P.S. Please find the jcl in the attachment

Thanks in advance,
thala_ds.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Sep 27, 2012 11:20 am
Reply with quote

xxx yyyyy yyyy \\\\\\ iiiiiiii zzzzzzz jjjlllllk
Back to top
View user's profile Send private message
thala_ds

New User


Joined: 05 Jun 2012
Posts: 18
Location: India

PostPosted: Thu Sep 27, 2012 11:30 am
Reply with quote

Hi,

Since we are not supposed to show the table names outside my firm, i just gave the dummy name... Sorry abt that.

WER468A DB2 QUERY SUPPORT ERROR: UNKNOWN DATA TYPE FOUND

Do you need the exact query?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Sep 27, 2012 11:38 am
Reply with quote

don't post screen shots.
cut and paste with the code tags is sufficient.
(but you would have known that had you read thru the FAQS
before posting)

now to figure out your problem.

UNKNOWN DATA TYPE FOUND

ok, what db2 data types will be returned in the result set?

btw,
if you read the manual, it will tell you what data types are supported.
Back to top
View user's profile Send private message
thala_ds

New User


Joined: 05 Jun 2012
Posts: 18
Location: India

PostPosted: Thu Sep 27, 2012 11:42 am
Reply with quote

Thanks for your help .
Below are the datatypes returned from the query.

TIMESTAMP
DATE
INTEGER
BIGINT

In the above set, it is getting the error for BIGINT datatype while unloading from the table.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Sep 27, 2012 11:44 am
Reply with quote

why don't you cast it as char?
Back to top
View user's profile Send private message
thala_ds

New User


Joined: 05 Jun 2012
Posts: 18
Location: India

PostPosted: Thu Sep 27, 2012 11:46 am
Reply with quote

But i need to unload the entire table.

Please advise me how can i cast one field alone in SELECT statement?

Thanks.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Sep 27, 2012 11:51 am
Reply with quote

how to cast a bigint (large integer) to char

examples at bottom of page
(but I suggest you read all of it, no telling what you will learn)
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Sep 27, 2012 6:28 pm
Reply with quote

If you haven't already, you should also report this error to your support folks so that they can notify the Syncsort vendor.
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top