Page 1 of 1

Reset aborted jobs across project

Posted: Mon Dec 19, 2011 6:13 am
by Ravi.K
Hi DSExperts,

Is there any command to "RESET" all the aborted jobs in a project.

Currently we are doing this activity job wise by using below command.

dsjob -run -mode RESET $PRO_NAME $JOB_NAME

Posted: Mon Dec 19, 2011 6:49 am
by zulfi123786
Guess not as nothing such documented in designer/developer/advanced developer guides

Posted: Mon Dec 19, 2011 7:17 am
by chulett
A single command to reset all jobs? No. You could always write one, but it would need to continue to do it 'job wise' as you noted.

Posted: Mon Dec 19, 2011 7:37 am
by Ravi.K
Ok. Is it possible to list out all aborted jobs?

If i get the list of jobs which are aborted then i could reset list of jobs reading each job from the list and then input to dsjob command. it will put all this stuff in UNIX script rather than doing manual work.

Posted: Mon Dec 19, 2011 7:39 am
by pandeesh
I posted a script called who got failed few months back.
You can find it out If you search here.

Posted: Mon Dec 19, 2011 7:41 am
by chulett
Pretty common to list out all jobs and then check to see if they are aborted. The dsjob executable can list all projects, or all jobs in a project and check the status of a job.

Posted: Mon Dec 19, 2011 9:10 am
by pandeesh
check out this:

viewtopic.php?t=141564

Posted: Sat Dec 24, 2011 7:34 pm
by Etler21
I have a script which is doing the same,its been tested and running well since a year and giving no issue.PM me and i will send u the code.

I will try to put that script here as well.

Posted: Sat Dec 24, 2011 8:48 pm
by pandeesh
Etler21 wrote:PM me and i will send u the code.
I will try to put that script here as well.
Please post it here so that it will be useful for many.