The FILEWATCH function for the IBM i Agent
You can use the filewatch utility to check for file system changes on files and libraries, for example, when you want to make sure that a file exists before running an IBM i job that processes that file. By defining a job that runs the filewatch utility, you can implement file dependency, that is, a relationship between a file and an operation in which specific activity on the file determines the starting of the operation.
Using this utility, you can check for the following IBM i objects:
- Native libraries
- Native logical and physical files
- Native file members
- Stream files (UNIX-like files)