Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I make current timestamp to be part of the export file name?

Status
Not open for further replies.

BeardBear

MIS
Dec 26, 2008
4
US
If it is possible, how to put the current timestamep to be part of the export file name?
 
AFAIK, it is not possible.
I would like to be proved wrong, though

The option is to use a shell/batch script to generate export stmts before executing

Code:
date +"%Y%m%d_%H%M%S"
echo "export to file_$now.ixf of ixf select * from table" > export.db2 

db2 -tvf export.db2

For db2 resoruces visit More DB2 questions answered at &
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top