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
 

 

Syncsort - DB2 QUERY ERROR While unloading data from table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Syncsort - DB2 QUERY ERROR While unloading data from table
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    Post subject:
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    Post subject: Reply to: Syncsort - DB2 QUERY ERROR While unloading data fr
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    Post subject:
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    Post subject: Reply to: Syncsort - DB2 QUERY ERROR While unloading data fr
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    Post subject:
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    Post subject: Reply to: Syncsort - DB2 QUERY ERROR While unloading data fr
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    Post subject:
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: 642
Location: Whitby, ON, Canada

PostPosted: Thu Sep 27, 2012 6:28 pm    Post subject:
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    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 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm


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