Automic Workload Automation

  • 1.  Can we give file patterns in Event-File Object ?

    Posted Jun 05, 2018 07:51 PM

    Hi All,

       I am looking for file event object which need to search for a file  /unixhome/file1.txt or /unixhome/file2.txt. I want to pass the control to next JOBS if there is atleast one of the files file1.txt or file2.txt. Please note that there might be other files with same pattern like file3.txt , file4.txt...etc., But I need to look for only file1.txt or file2.txt and then go to next JOBS. I was trying to use something like /axphome/nkankana/temp/file*1|2*.txt. But not working. Can you please help ? 



  • 2.  Re: Can we give file patterns in Event-File Object ?
    Best Answer

    Posted Jun 06, 2018 06:32 AM

    Hi

     

    If you are talking about using regex within EVNT.FILE onjects, thats not possible.

     

    You can check  this with a bit scripting, e.g. STR_MATCH

     

    :  IF STR_MATCH("&FILENAME#", "*file1.txt")= "Y"

    .....

    :  IF STR_MATCH("&FILENAME#", "*file2.txt")= "Y"

    .....

     

     

    cheers, Wolfgang