>*lcfilename = (ALLTRIM(STR(yEAR(DATEtime()))) ; > +PADL(ALLTRIM(STR(month(DATEtim()))),2,'0') ; > +PADL(ALLTRIM(STR(day(DATEtime()))),2,'0') ; > +"@"+CHRTRAN(substr(TTOC(DATETIME()),AT(CHR(32),chrtran(TTOC(DATETIME()),':',''))+1),':','') ; > +sys(2015))+sys(3)+'.TXT' > >local ltNow >ltNow = datetime() >lcFileName = dtos(m.ltNow) + "@" ; > + left(chrtran(time(m.ltNow),":",""),6 ); > + sys(2015) + sys(3) + '.TXT' >? lcFilename >>consider the clock also ticking wile the expression is executing and shudder at the dangers of midnight rollover during that time.