Topic: Wildfile Search File Name Extensions (1 of 2), Read 53 times
Conf: Wildfile, Other macros
From: Larry Radbill
Date: Wednesday, January 03, 2001 05:48 PM

i'm trying to use wildfile to process all files of type *.sas but i also have files of type *.sas7bdat .... when i ask wildfile to search for *.sas it returns files of both types. is there anyway to restrict wildfile so that it won't do this?

 


Topic: Wildfile Search File Name Extensions (2 of 2), Read 53 times
Conf: Wildfile, Other macros
From: Christian Ziemski
Date: Thursday, January 04, 2001 03:07 AM

That's a DOS/Windows problem.
WILDFILE uses the DOS command "DIR" to get your filenames and that command fails here :-(

Try it in a DOS box manually:
Assume the four files
- ADR.TXT
- ADR.TXTOLD
- ADR.TXT1
- ADR.TXT1OLD

DIR *.TXT lists all the four files.
But fascinating a
DIR *.TXT1 lists only the last two files.
And a
DIR *.TX lists no files.

So it seems that DIR behaves wrong if the search pattern contains 3 letters.
Then it only checks the first three characters of the extension too (it seems to check the 8.3 short name only here).

Unfortunately VEDIT/Wildfile has no chance to get around this.

(At least I can't see one. Blame it on MS.)


HTH
Christian