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 > export filename with timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-04, 11:52
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
export filename with timestamp

I am trying to export to a file with a specific name. How can I add the exact timestamp (in any format) at the time of generation of the export file, to the file name? The SQL for the export will be run from a script saved in the DB@ Scheduler. It is not a Stored Procedure.

Thanks a lot for any help.
Reply With Quote
  #2 (permalink)  
Old 06-18-04, 18:36
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
in unix enviroment you can use

<file_name>.`date`

there are many options for the date you can use to your advantage.
regard.

mujeeb
Reply With Quote
  #3 (permalink)  
Old 06-18-04, 19:27
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
thanks, mujeeb. i'll try that.
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