If you want to keep the job defined to AutoSys and run it on an as needed basis, I would create the job with date_conditions: 0 without any times or days so it doesn't have any scheduling criteria. Then issue a future sendevent to force start it on the date/time you choose. Since it doesn't have a schedule, it'll never run on it's own unless you manually start it.
EX: sendevent -e FORCE_STARTJOB -j DSM_LPZ_TEST_JOB_1 -T "04/23/2020 19:00"
autorep -j DSM_LPZ_TEST_JOB_1 -d
Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
DSM_LPZ_TEST_JOB_1 ----- ----- IN 0/0
Status/[Event] Time Ntry ES ProcessTime Machine
-------------- --------------------- -- -- --------------------- ----------------------------------------
[FORCE_STARTJOB] 04/23/2020 19:00:00 0 UP <--- Notice that it shows tomorrows date.
------------------------------
AutoSys Administrator
Bank of America
------------------------------
Original Message:
Sent: 04-21-2020 02:16 AM
From: Jose Ramon Lopez
Subject: Run job only once after creation.
Hi,
You can a job that has 3 steps. 1st run a jil to add the job to autosys, 2nd run the force start command and 3rd run a jil to remove the job from autosys.
example:
jil < add.jil; force_start..... ; jil < remove.jil
best regards.
Jos´se
Original Message:
Sent: 04-18-2020 10:26 PM
From: John Van
Subject: Run job only once after creation.
I need to create a new job, it will run at a specific time the next day, but after that, it should not run by itself ever again until someone do a force-start. I know how to set the time but what should I put on my jil file that will stop the job from automatically start after the first run?