From the does anyone have a better way department:
I have a need to capture file names (to process in rbase) from a designated directory. The names will always be a static format and length, but will change (file0001.txt , file0002.txt...). Only files that need processing will be in the directory. My thought was to:
output tempfile.txt
dir
output scr
use the gateway command to import into a temporary table and use declare cursor and (sget(.vTemp) to capture the filenames. Is there a better way? I'm always afraid that I've missed a function that will do what I want very easily. Thanks for you help.
