No! In this case my file name is an automatic file name. It's a code (FR1 or BE1) with the full date (yyyy/mm/dd). Here is my script:
proc DateName
param string CapFileName
string CapPref, CapDate, TempVar1, TempVar2,TempVar3
CapPref = "FR1" ;Add an argument (simplified here).
TempVar1 = $date ;Get current date.
strextract CapDate TempVar1 "/" 0 ;Get year(yyyy) from date.
strextract TempVar2 TempVar1 "/" 1 ;Get month(mm)from date.
strcat CapDate TempVar2 ;Add month to year.
strextract TempVar3 TempVar1 "/" 2 ;Get day(dd) from date.
strcat CapDate TempVar3 ;Add day to year&month.
CapFileName = CapPref ;Set file name to CapPref.
strcat CapFileName CapDate ;Add date to filename.
strcat CapFileName ".dat" ;Add '.dat' ext to filname.
endproc
It doesn't work because I have more than 8 characters!!!