I should script the whole process, but my process is still fairly manual, using autorep.
When a job gets retired I place it in On Hold status (I use On Hold for long term, On Ice for short term pauses).
-every so often, I use autorep to list all jobs and grep OH for the on hold jobs, then grep again for the previous year (last run time is output with autorep).
-I cut the first column (job name) and grep our job name standard (to remove the header and dash dash dash lines) and redirect it to a file. This is my list of jobs to remove.
-using the new file as input, I step through each one (Linux command) to output full jil into a file. This is my backup.
-using another script I use the delete_job jil command and remove the jobs from autosys.
fairly tedious but not very often so haven't taken the effort to fully script it yet.
Original Message:
Sent: 09-01-2020 04:10 PM
From: Rajadurai PratapKumar
Subject: List of old jobs
Hello Team ,
As part of fine tuning the environment . I would like to remove the jobs which are older and have been not executed for many days (since years ). I tried to execute the query using the query select * from ujo_job_runs. it list the jobs which has Start and end time in numeric and not in date format ,.Is there any other method to find the obsolete jobs
------------------------------
Best Regards
Rajadurai
------------------------------