How to append a time stamp to the ouput file in FTPStage ?
Moderators: chulett, rschirm, roy
How to append a time stamp to the ouput file in FTPStage ?
Hi-
How to append a timestamp to the ouput file in FTPStage ?
Thanks
How to append a timestamp to the ouput file in FTPStage ?
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not sure what else to say other than you generate it and pass it into the job as a parameter. The 'old fashioned' way would be to create a routine that gets a system timestamp and strips out all the yucky bits you don't want, typically the dashes and colons.
From '2006-11-28 20:44:13' to '20061128_204413' perhaps?
Sequencer job runs it and passes it to the FTP job. Heck, for all I know you can do this all directly in the Job Activity's parameter value nowadays, haven't tried.
From '2006-11-28 20:44:13' to '20061128_204413' perhaps?
Sequencer job runs it and passes it to the FTP job. Heck, for all I know you can do this all directly in the Job Activity's parameter value nowadays, haven't tried.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Hi tried appending the #DSJobStartTimestamp# with the file name but the job is aborting with following error messagenarasimha wrote:Does appending #DSJobStartTimestamp# to the outputfile not help?
test_2007-08-29 05:49:57.txt is not a valid path name
is der any other way to append the timestamp to file without using job parameter and after job routine?? any idea??
Thanks
Narendar :
i have the script with me which i can use but i wanted to do this within a job without using job parameter and after job routine and also script.mohdsuf wrote:I have a ready shell script script which can be used to append timestamp to the file name.
Just tell me the excat format which you want your output file to be. May be that shell script helps you out and it can be called from after job subroutine.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: