Skip to main content

Problem:

In COBOL, how can I monitor a directory for the existance of a file.

Resolution:

There are a number of ways you could do this:-

- "X"91" function 69"

- .Net directory class if your using the .Net COBOL Compiler

- FileSystemWatcher control if your using Studio which has WinForms Support.

X"91" demo is at http://downloads.microfocus.com/examplesandutilities/general/dirlist.zip

Old KB# 3926