File-update triggering
File-update triggering is more complex because, as mentioned previously, in general, the z/OS® operating system does not maintain information for files that could be used as a way of recognizing that the file changed. The z/OS Launcher will infer a change of a PDS or PDS/E member by recognizing the change in its location, TTR, or pointer.
File-update triggering is allowed for PDS or PDS/E members, but not sequential files. There is no straightforward way to check for sequential file updates.
The following process repeats until the specified event is triggered. The process awaits a specified file to be updated and when it recognizes that it has been updated, by a successful directory read attempt, it triggers execution of an event.
To trigger on an updated file: