Page 1 of 1

AFT - dynamic file name

Posted: 09 Jul 2015 4:56
by nekokarma
Hello Experts,

I´m new to control-M and i was asked to create a new AFT job that does the following

1) Transfer a file named FILE-YYYYMMDD to a remote location with name OTHERFILE-YYYYMMDD

This transfer have to run daily.

I already manage to transfer a file with a fixed name and change its name, but i cant seem to find the way to specify the file name dinamicly (the name changes with every day)

Thanks for any input you can give on this issue.

Re: AFT - dynamic file name

Posted: 28 Jul 2015 5:49
by SreeMahi
You can use //PATH/FILENAME-%%$YEAR.%%MONTH.%%DAY in the source and //PATH/OTHERFILENAME-%%$YEAR.%%MONTH.%%DAY in the destination.

Re: AFT - dynamic file name

Posted: 24 Aug 2015 11:08
by nekokarma
SreeMahi wrote:You can use //PATH/FILENAME-%%$YEAR.%%MONTH.%%DAY in the source and //PATH/OTHERFILENAME-%%$YEAR.%%MONTH.%%DAY in the destination.
Thanks SreeMahi, it works perfect!!!

Thanks for your help.