Archiving processed file with timestamp
Posted: Fri Sep 01, 2006 1:46 am
Hi Dsxians,
After processing my source file by the datastagejob i am archiving that file
by writing the following command in after job subroutine.
mv #dstage_data_dir#/MSG.txt #dstage_tmp_dir#/MSG.txt.#proc_dt#
proc_dt is one of the parameter which is passing current date.I am getting the source file five times a day and archived file is getting overwritten by 5 files data.
I want to replace proc_dt with timestamp or some unique identifier so that i will get 5 archived files for that particular day.Could any one plz help me out in solving this problem.
Thanks
tom
After processing my source file by the datastagejob i am archiving that file
by writing the following command in after job subroutine.
mv #dstage_data_dir#/MSG.txt #dstage_tmp_dir#/MSG.txt.#proc_dt#
proc_dt is one of the parameter which is passing current date.I am getting the source file five times a day and archived file is getting overwritten by 5 files data.
I want to replace proc_dt with timestamp or some unique identifier so that i will get 5 archived files for that particular day.Could any one plz help me out in solving this problem.
Thanks
tom