Pass next day of a date to a job from job activity stage
Posted: Tue Jan 04, 2011 12:53 pm
Hi,
I have a requirement ,which is to pass a a date as well as the next day of the date(date+1) to the job thorugh activity stage in sequencer. I need to read 2 files with the current date (data date) and the next day as file timestamps.
I have found a way which I think is too much processing for a simple thing. Here is my solution.
In sequencer,
Job1(this will add 1 day to the data date using the function DateFromDaysSince and then write the date to a file) ====> Execute command stage( which will read this file and out put the date)===> Job2 (gets data date from sequencer parameter and the next day from Execute Command output)
Is there a simple way to do this?. I am not an expert in writing in shell scripts although did some research to get the next date from a parameter date passed to the script with no luck.
Thanks...
I have a requirement ,which is to pass a a date as well as the next day of the date(date+1) to the job thorugh activity stage in sequencer. I need to read 2 files with the current date (data date) and the next day as file timestamps.
I have found a way which I think is too much processing for a simple thing. Here is my solution.
In sequencer,
Job1(this will add 1 day to the data date using the function DateFromDaysSince and then write the date to a file) ====> Execute command stage( which will read this file and out put the date)===> Job2 (gets data date from sequencer parameter and the next day from Execute Command output)
Is there a simple way to do this?. I am not an expert in writing in shell scripts although did some research to get the next date from a parameter date passed to the script with no luck.
Thanks...