Is there a way for a program to find out if a folder contains any documents (we will not know a document name). We need to know if the folder is empty or if it contains any documents.
Software/Hardware used:
ASKED:
June 27, 2006 4:30 PM
UPDATED:
December 10, 2009 8:37 AM
This is an I-series program. The folder is on the I drive.
On the iSeries there is a command called QRYDOCLIB. It will create on output file listing all documents in folders based on your search criteria. You can search all folders or a specific folder as well as specificying whether subfolders are included or not. Other criteria lets you find documents by who created the document, last maintained date, etc.
Folders and documents? Or directories and files? They’re not exactly the same.
QRYDOCLIB, for example, can work for “folders and documents” but not for directories and streamfiles outside of the /QDLS file system.
Tom