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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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