Page 1 of 1

Posted: 29 Sep 2006 7:14
by fyot
Hi,

You can use AUTOEDIT variables in your filename like that example:

%%YEAR%%MONTH%%DAY.filename.txt

You could find AUTOEDIT Variables in Control-M User Guide

Posted: 02 Oct 2006 4:52
by fyot
Hi Thomas

Try this example

\\servername\sharename\.%%YEAR.%%MONTH\.%%DAY\.%%TIME\filename..xml

Posted: 26 Jun 2008 4:19
by Dilbert
I'm trying to copy files (using FTP) to a folder created with time stamps.

I put the dots between the variables: C:\SO\.%%$YEAR.%%MONTH\tmp\
The folder is created by DOS bat file, in format: YYYYMM

But job failed. :(

Here is the sysout:
Dst file: 'C:\SO\.2008CTMERRMONTH\tmp\file_1.txt' on host 'cmem6301sql'
File 'C:\SO\.2008CTMERRMONTH\tmp\file_1.txt' open for overwrite failed
Error[2]: The system cannot find the path specified.


How to solve that?
Tnx!

Posted: 26 Jun 2008 4:45
by fyot
Try this

replace

C:\SO\.%%$YEAR.%%MONTH\tmp\

by

C:\SO\.%%$YEAR.%%MONTH.\tmp\

Posted: 26 Jun 2008 5:24
by Dilbert
fyot wrote:Try this

replace

C:\SO\.%%$YEAR.%%MONTH\tmp\

by

C:\SO\.%%$YEAR.%%MONTH.\tmp\
It works, fyot!
But without first dot. ;) (in .%%$YEAR)

Thanks a lot!

AdvancedFileTransfer - Create Timestamp on Filenames

Posted: 16 Sep 2008 11:32
by Dilbert
OK, another question :)
Every day the file is created, name as, for example, for today: "file-September 16, 2008.pdf"

Tomorrow, file name will be "file-September 17, 2008.pdf"

and so on...

(beware of space between "September" and "number 16, 17, and space between day and year)!

How to create AFT and filewatcher job which will use the exactly filename format described above?

Thanks in advance!

Posted: 16 Sep 2008 2:39
by mauriziog
How to create AFT and filewatcher job which will use the exactly filename format described above?


Build dinamically the RULES file that you use in ctmfw utility.