How to set up a job to run in a loop based on variables

Eduardo Menezes (20 posts)
March 9, 2024 05:09 AM
Accepted Answer

Hello, Dear comunity,


I have one job that I need to re-run, and this job received one variable called offset date.

This job is configured to run for D-1. Then I see the variable for %offesetdate% = -1, which works fine.

My problem is that I need to re-run for the last 20 offset dates.

Then I was wondering if there is a way in Adtempus to call the job in a loop from -20 to -1 and leave it running automatically.

Thanks in advance for your attention, and I look forward to your reply.

 

Eduardo

Eduardo Menezes (20 posts)
March 10, 2024 10:21 AM
Accepted Answer
Sorted!
Bill Staff (599 posts)
March 11, 2024 08:37 AM
Accepted Answer
I can think of several ways of doing this, depending on your exact setup and needs. Please consider sharing the solution you came up with in case it's helpful for others.