Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rboccuzziYou have it almost right. Parameters are always just textual substitution, so you want to do this:
"{{^BeginDate^}}".toDate("CCYY-MM-DD").month() to get a month value from date parameter.
And then, as the other thread shows, you can use the parameter formed to do a move from a hardcoded name to the desired name.
Unfortunately, you can't currently provide BRAINscript for the file parameter to an output delimited node. You could include the parameter fully though, as in:
c:/some/path/OutputFile_{{^BeginDate^}}.txt in the Output Delimited Node,
and if that is good enough, you are all set, but if you need to, you could then follow it by a node that does a move, using moveFile in BRAINscript, creating the name using the format shown above to extract the month.
Let us know if you need an example.
Cheers
Rich