Hi Chaps,
Can we set up a job to remove any jobs older than n number of days in EM GUI?
Regards,
Nancy
Job cleaning
Hi,
I thinks you related jobs in AJF, for this use the <ctmpsm> utility
Create a job with this statements:
-Step 1 : select all jobs based on ORDERID related to your ODAT and eliminate jobs in DELETED status
ctmpsm -LISTALL ODAT | grep <yyyymmjj> | grep -v 'Deleted' | awk '{print $1}' > my_temp_file.$$
- Step2: HOLD and DELETE selected jobs
for job in `cat my_temp_file.$$ `
do
ctmpsm -UPDATEAJF $job HOLD
ctmpsm -UPDATEAJF $job DELETE
done
I thinks you related jobs in AJF, for this use the <ctmpsm> utility
Create a job with this statements:
-Step 1 : select all jobs based on ORDERID related to your ODAT and eliminate jobs in DELETED status
ctmpsm -LISTALL ODAT | grep <yyyymmjj> | grep -v 'Deleted' | awk '{print $1}' > my_temp_file.$$
- Step2: HOLD and DELETE selected jobs
for job in `cat my_temp_file.$$ `
do
ctmpsm -UPDATEAJF $job HOLD
ctmpsm -UPDATEAJF $job DELETE
done
Best regards
Walty
Walty