AFT - dynamic file name

All questions about Control-M jobs definitions
Post Reply
nekokarma
Nouveau
Nouveau
Posts: 3
Joined: 09 Jul 2015 4:41

AFT - dynamic file name

Post by nekokarma » 09 Jul 2015 4:56

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.

User avatar
SreeMahi
Nouveau
Nouveau
Posts: 12
Joined: 20 Oct 2008 12:00
Location: Bangalore,Karnataka
Contact:

Re: AFT - dynamic file name

Post by SreeMahi » 28 Jul 2015 5:49

You can use //PATH/FILENAME-%%$YEAR.%%MONTH.%%DAY in the source and //PATH/OTHERFILENAME-%%$YEAR.%%MONTH.%%DAY in the destination.

nekokarma
Nouveau
Nouveau
Posts: 3
Joined: 09 Jul 2015 4:41

Re: AFT - dynamic file name

Post by nekokarma » 24 Aug 2015 11:08

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.

Post Reply