autosys

Autosys file watcher for a particular filename on Windows


I am trying to write a file watcher job in autosys that would watch out for a particular file. The file name format would be filename_ddmmyyyy.

The requirement is that the file comes at 7.15am everyday and the file watcher job starts running at 6.50am and the runs till 8am. If the file is received by then, job is successful else an alert is raised.

Now what I am trying to do is to watch out the file filename_ddmmyyyy for a particular day. e.g. if today is 22nd Feb 2013, the file name will be filename_22022013 and this is the file that I am looking for. If I use wildcards like filename_*, it would look for all possible files which I don't want.

I am not sure how to do this in Windows.

Any help would be much appreciated.

Let me know in case of questions.


Solution

  • Create global variable as variable with date and us that variable :

    example:filename_$${GV_DATE}
    GV_DATE: ddmmyyyy