| Subject | Concatenate text to a system variable |
| Version | 6.x |
| Date | 01/20/2006 |
| Message | I would like to rename a file from an FTP GET task and append the system date to the new name. For
instance, the filename I am getting is FNOT and I would like to change it to SRM20040922.TXT. I
attempted the following: SRM$%DATE::YYYPPMM%$.TXT Is there a way to perform this? Is there a concatenation operator or something? Thanks, |
| Reply1 |
Hi Michael, Thanks for using Automize. 1) The Ftp task can only append or add text to the filename. See the help on the Append To Filename field. If you use this Append to Filename field in the Ftp task, the original FNOT will always exist in the filename. 2) If you are using 6.x, the copy task has a rename option. Here, you could use: Filename = FNOT rename Filename = SRM$%DATE::YYYPPMM%$.TXT -- Sincerely, Melvin Desilva Hitek Software |
| Reply2 | |
| Reply3 | |
| Reply4 | |
| Reply5 |