Hi All,
Can we attach Timestamp to a Output File generated by Sequential File Stage.
Is it possible.
Thanks in Advance
Can we attach Timestamp to a Output File
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
You can either pass the Timestamp as a job parameter and include that in your file name option (#Dir##FileName##TimeStamp#) the sequential file stage or use
in the job parameter grid option for after job ExecSH option.
Code: Select all
mv <Dir>/<FileName> <Dir>/<FileName>`date '+%Y-%m-%d:%H:%M:%S'`
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>