If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > unload with convertion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 09:12
maayanp maayanp is offline
Registered User
 
Join Date: Jun 2003
Posts: 58
Question unload with convertion

hi, i have fields in tables that we want to convert from date to timestamp.
in the new unload i don't find a way to get out a converted data (not like the old one where we could write a SQL statement).

is there a way i don't know about ?

thanks!
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 12:34
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
What DB2 platform and release?
Reply With Quote
  #3 (permalink)  
Old 10-12-03, 01:13
maayanp maayanp is offline
Registered User
 
Join Date: Jun 2003
Posts: 58
os/390
Reply With Quote
  #4 (permalink)  
Old 10-12-03, 02:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I assume you have DB2 version 7?

You can use DSNTIAUL which is now provided in source code format only and must be assembled (if not already done so). Check out Appendix D of the Version 7 Utility Reference manual.

Using this program you can unload the data with a select statement and then concatenate the date and a string that is the rest of the time stamp.
Reply With Quote
  #5 (permalink)  
Old 10-13-03, 14:10
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
Re: unload with convertion

use this:

timestamp(<date>,<time>)

for example:

timestamp ('2003-01-01','00.00.00')

Abel.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On