3 Replies Latest reply on Sep 27, 2019 4:06 AM by Bhanu Prakash Badiginchala

    How do you store jobs last run time in local variable

    Josh Andersen
      Share This:

      I was trying to create a delta for a cyclic job.

       

      If job runs at 1pm it would see the %%delta = 1300

       

      I tried to do this using an On Do Acton

      When Job ended OK

      set variable (local) delta = %%TIME

      but instead of storing 1300 it stores %%TIME which isn't what i want to see next time the job runs.

       

      Is there a way to store the string over a reference to the variable?

      Is there a way to calculate how much time as passed since the last job run?

       

      Job Debug Example

      Command: echo Last run time %%delta Current %%TIME

       

      When Job ended OK

      set variable (local) delta = %%TIME