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: 6968
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: 6968
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: 6968
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: 6968
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: 654
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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