Hi ALL,
I am rejecting the data in a sequential file. My requirement goes like this.
I need to append the date at the end of the file name. so when users wish they can able to see the rejected data on a particular day.
Please let me know how to do that?
Thanks,
Madhavan.S
The job is invoked via a shell script and running on OS: UNIX.
Date after File Name
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 1
- Joined: Fri Feb 09, 2007 5:00 am
- Location: chennai
Have a job parameter for date and append the file name with the job parameter.
where date is the job parameter.
Code: Select all
FileName_#date#
Somthing like
Code: Select all
mv myfixednamefile.txt filewithdateandtime`date +"%Y%m%d_%H%M%S"`.txt
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Date after File Name
This can be done from the Sequencer in the parameters section. This statement will format a date as such: 'FILENAME'_YYYYMMDD.TXT
"FILENAME" :"_": Convert("-","", DSJobStartDate):".":".txt"
"FILENAME" :"_": Convert("-","", DSJobStartDate):".":".txt"