1 Reply Latest reply on Feb 6, 2015 2:03 PM by Robert Stinnett

    Kill a job based on Order Date

    Mark Francome
      Share This:

      The user wants to file watch for files (based based on the calendar date) and potentially watch for a week (launching a new file watcher just after midnight daily). The "post processing" in Control-M only supports a maximum of triggering after 999 minutes, so I can only think of running ctmjobkill based on output from ctmpsm, i.e. -

       

            ctmpsm -LISTALL ODAT MEMNAME | grep adrccr300

      0000p86n adrccr300         JOB   20150205 Executin        0002     >    

       

      and then taking out anything older than a week (20150130 and older) and killing that. Does anybody have a better way? Can jobs be displayed based on execution duration?