Still, there's is no W-Language command or property to retrieve the internal generation number from the analysis. Logically, only the comparison of the file's generation number and the analysis' generation number can reveal if the file is newer or older than the analysis.
In fact, there is a workaround. It comprises to make an empty database / directory , to HCreate all files of the analysis, to compare files and take action or not, to delete the database or directory. In a multiuser environment, each station has to create its own database or directory. But it is by far not that easy as described here and it involves a lot of code lines. And it eats time on each time a program is started.
Request: make a ..GenerationNumber property available in order to retrieve the internal generation number from the analysis.