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 > DSNUTILB Load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-08, 04:31
Rajan Babu Rajan Babu is offline
Registered User
 
Join Date: Aug 2008
Posts: 3
DSNUTILB Load

Hi,

Can anyone let me know how to load a field in a table with CURRENT DATE using DSNUTILB .

Thanks in Advance.

Thank you,
Rajan Babu.
Reply With Quote
  #2 (permalink)  
Old 08-22-08, 05:07
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
high,

you can't specify this in the load-control-statement.

If the column is NOT NULL WITH DEFAULT, just omit that column in the load-control-statement, as CURRENT DATE is the default value.

otherwise, you have to modify the load dataset before loading it into the table
Reply With Quote
  #3 (permalink)  
Old 08-22-08, 05:11
Rajan Babu Rajan Babu is offline
Registered User
 
Join Date: Aug 2008
Posts: 3
DSNUTILB Load

Thank you Umayer,

Can you please let me know is there anyway to load CURRENT DATE - 1 DAY ?
Reply With Quote
  #4 (permalink)  
Old 08-25-08, 01:38
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
"CURRENT DATE - 1 DAY" cannot be specified as a default value.

Best way is, to modify the load dataset before loading it into the table
Reply With Quote
  #5 (permalink)  
Old 08-25-08, 01:44
Rajan Babu Rajan Babu is offline
Registered User
 
Join Date: Aug 2008
Posts: 3
DSNUTILB Load

Thank you!!! Umayer
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