AutoSys Workload Automation

 View Only
  • 1.  File watcher job

    Posted Apr 23, 2020 08:18 PM
    Hi all,

    I have to create a File watcher job which which check the presence of one file but only the current one.

    For example: File name is abc present at path ab/data/files.

    Files comes to this path everyday with date convention of MMDD like Filename_0423 where mm is month and dd is date.

    what should I put in place while job creation where it asks for "File(s) to watch:"
    so that it will tak just the current file.


  • 2.  RE: File watcher job
    Best Answer

    Posted Apr 24, 2020 08:36 AM
    Edited by Christopher Hackett Apr 30, 2020 05:15 PM
    If the FW is an EVENT File Monitor you don't have an option, but if you make it a FW job and let it scan into the queue you can use the system date variables, or create a variable with whatever date scenario you need in the javascript, then make that part of the file name.

    • Date paramaters

    %(WOB._RMM)%(WOB._RDD)%(WOB._RYEAR)

    %(APPL._SDD)%(APPL._SMM)%(APPL._SYEAR)

    %(APPL._SMM)%(APPL._SDD)%(APPL._SYEAR)%(APPL._SHH)%(APPL._SMN)%(APPL._SSS)