Append system date and time to a file name in Seq File Stag
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3
- Joined: Tue Sep 23, 2008 2:52 am
- Location: France
More details please ?
Hi, thanks for your explanation but could you give some details around the syntax of that. Around passing this values in as job parameters.chulett wrote:You'd need to pass those values in as job parameters to use them in the filename when created. ...
Some exemples ?
Thanks.
-
- Participant
- Posts: 3
- Joined: Tue Sep 23, 2008 2:52 am
- Location: France
-
- Participant
- Posts: 3
- Joined: Tue Sep 23, 2008 2:52 am
- Location: France
Or you can pass Timestamp as part of File name ( FileName_#FILE_TIMESTAMP#.txt) dynamically from Sequencer job or Job Control job.
Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
By William A.Foster
Or you can pass Timestamp as part of File name ( FileName_#FILE_TIMESTAMP#.txt) dynamically from Sequencer job or Job Control job.
Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
By William A.Foster
The method I used to get a sequence file name that includes the current date:
In the Parallel Job add a Parameter for the Current Date. In the Sequential File stage include the parameter in the File: myfile_#Current_Date#.txt
Create a Sequence Job. Add UserVariables Activity Stage. In the UserVariables stage add a variable in User Variables named TODAY_YYYYMMDD with Expression convert('-','',oconv(@DATE, "D4-YMD[4,2,2]"))
Add my Parallel Job as a Job Activity Stage to the Sequence Job. Link with UserVariables to Job Activity. In Job Activity Parameters, Insert the Parameter from UserVariables Stage.
In the Parallel Job add a Parameter for the Current Date. In the Sequential File stage include the parameter in the File: myfile_#Current_Date#.txt
Create a Sequence Job. Add UserVariables Activity Stage. In the UserVariables stage add a variable in User Variables named TODAY_YYYYMMDD with Expression convert('-','',oconv(@DATE, "D4-YMD[4,2,2]"))
Add my Parallel Job as a Job Activity Stage to the Sequence Job. Link with UserVariables to Job Activity. In Job Activity Parameters, Insert the Parameter from UserVariables Stage.