Jan 21, 2009 #1 BeardBear MIS Joined Dec 26, 2008 Messages 4 Location US If it is possible, how to put the current timestamep to be part of the export file name?
Jan 23, 2009 #2 sathyarams IS-IT--Management Joined Jan 2, 2002 Messages 290 Location GB 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 http://www.db2click.comMore DB2 questions answered at http://www.dbforums.com/f8 & http://www.idug.org/user/UserLogin.asp Upvote 0 Downvote
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 http://www.db2click.comMore DB2 questions answered at http://www.dbforums.com/f8 & http://www.idug.org/user/UserLogin.asp
Jan 23, 2009 #3 sathyarams IS-IT--Management Joined Jan 2, 2002 Messages 290 Location GB date +"%Y%m%d_%H%M%S" should have been now=date +"%Y%m%d_%H%M%S" For db2 resoruces visit http://www.db2click.comMore DB2 questions answered at http://www.dbforums.com/f8 & http://www.idug.org/user/UserLogin.asp Upvote 0 Downvote
date +"%Y%m%d_%H%M%S" should have been now=date +"%Y%m%d_%H%M%S" For db2 resoruces visit http://www.db2click.comMore DB2 questions answered at http://www.dbforums.com/f8 & http://www.idug.org/user/UserLogin.asp