>I am facing the problem that I have to read folders with lots of files. Each folder may contain more than 60000 files. Using ADIR brings the message 'Too many variables ...'. How can I get around this problem?
You can use SYS(2000) function. See
Re: Is there an alternative to ADIR()? Message #
899753
--sb--