>>>>Did you not see message #
1173916 ?
>>>>
>>>This message doesn't explain why I'm getting wrong results using mask for searching.
>>
>>Naomi
>>
>>There is no need to explain why. Those functions simply do not work as you wish.
>>
>
>BTW, There IS a reason to explain why. It's either problem with our Server and FAT system, or a bug in ADIR/SYS(2000)/Filer functionality. It would be nice if someone can run similar tests for directories with huge number of files (say, Internet temp directory).
The code I posted proves that what you see is the behavior of adir/sys(2000). If the mask is "*E*.JPG" it will find files where E is anywhere. It does not limit it to .JPG.
It is not a problem with the FAT since I got the same behavior as you with only 39 files. It looks like a bug to me or my expecation (and yours) is not what adir/sys(2000) is doing.