cancel
Showing results for 
Search instead for 
Did you mean: 

FTP file pattern

former_member369006
Participant
0 Kudos

Hello.

Anybody knows how to add current date to file name uploaded by FTP.

Accordfing to documentations I tried: File_name[yyyy]-[mm]-[dd].txt but it seems to not work.

Anyone can help?

Regards,

Pawel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Explain your requirement in detail.

former_member369006
Participant
0 Kudos

Hi.

I want to upload to FTP file named: File_name[yyyy]-[mm]-[dd].txt

where yyyy - is current year

mm - current month

dd - current day

Help says:

File Pattern

Provide the file pattern and the target directory on the FTP server for the file you want to store or delete on the FTP server. For the target directory you can provide an absolute or relative path. When providing the path, comply with the rules of the FTP server operating system.

If you want to create a file, you can add the following to the file pattern:

●      Use the ? character to add a counter to the file name. For example when using myfile??.txt the integration framework checks the file pattern in the FTP target directory and providesmyfile02.txt on the FTP server, if myfile01.txt already exists.

●      [ts] adds the timestamp to the file name.

●      [yyyy] adds the current year in four digits to the file name

●      [yy] adds the current year in two digits to the file name

●      [mm] adds the current month to the file name

●      [dd] adds the current day to the file name

●      [hour] adds the current hour to the file name

●      [min] adds the current minute to the file name

●      [sec] adds the current second to the file name

so I tried to input:  #File_name[yyyy]-[mm]-[dd].txt as file pattern

But it doesn't work.

Former Member
0 Kudos

Hi,

Remove the '-' from file name and use '_' .

former_member369006
Participant
0 Kudos

Hi

I doesn't work as well.