FOR xx=1 TO nfilecount >>STORE attach(xx) TO flo >>lnLastRecord = reccount() >>append from (flo) TYPE delimited WITH CHARACTER "," >>go lnLastRecord >>replace rest yourFilenameField with flo >>next
>go lnLastRecord+1 >