Unix: Use popen to execute an ls command, and see if there’s any output.
Windows: There are interator functions that do the same thing. You call the first one to set the list of files you want, and call an iterator routine to get the next one. If you get none, no files.
AS/400: There are system tables that give you this. I’m not in front of the 400 right now, but I think the table name is sys_tables. One of the fields gives the library (schema) name. Check the number of such records.
Sheldon Linker (email@example.com)
Linker Systems, Inc. (www.linkersystems.com)