>Oops!!
>
>The format was wrong !
>
>date = 6 ddmmyy
>time = 6 hhmmss
>millisec = 2 msms ?
To get time and ms,
CHRTRAN(TIME(1), ":.", "")
FWIW: I've used
DTOS(DATE())+CHRTRAN(TIME(1), ":.", "")
This gives you
yyyymmddhhmmssmsms
which sorts better meets more Y2K compliant date configuration. It also makes sorting cleaner by year (if need that sort of thing). e.g., at the time of writing this:
2001042510112630
In a very fast loop this presents the same problem as SYS(3), namely duplicate values, but I don't create files that fast :)
HTH
Insanity: Doing the same thing over and over and expecting different results.