Re: CLP export file with date stamp

This is a discussion on Re: CLP export file with date stamp within the db2-udb forums in Other Databases category; Hi, You need to do a trick with few OS Commands (if you are working on Linux). Issue following command on $ prompt for exporting a table : file= myFile_ `date + %F `.txt;db2 export to $file of del select * from employee Gajanan Deogirikar...

Go Back   Database Forum > Other Databases > db2-udb

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-22-2007, 06:20 AM
Default Re: CLP export file with date stamp

Hi,



You need to do a trick with few OS Commands (if you are working on Linux). Issue following command on $ prompt for exporting a table :



file="myFile_"`date +"%F"`.txt;db2 "export to $file of del select * from employee"



Gajanan Deogirikar
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.