Resetting Jobs From Command Prompt

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sjordery
Premium Member
Premium Member
Posts: 202
Joined: Thu Jun 08, 2006 5:58 am

Resetting Jobs From Command Prompt

Post by sjordery »

Hi,

I am running 100+ instances of a Multi-Instance Sequence job. When I need to reset the aborted jobs , one way to reset them manually one by one via Director. But its a very slow process.

Is there any command line option available to reset the jobs via command line?

Thanks,
Sjordery.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, one of the dsjob run modes is RESET.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sjordery
Premium Member
Premium Member
Posts: 202
Joined: Thu Jun 08, 2006 5:58 am

Post by sjordery »

Thanks Craig. I will get back to the post after my workout.

Regards,
Sjordery.
sjordery
Premium Member
Premium Member
Posts: 202
Joined: Thu Jun 08, 2006 5:58 am

Post by sjordery »

Hi,



/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob run -mode RESET Project_P1 Test_job1

Upon executing the above command to reset the job Test_job1, I am getting below error.

Invalid/unknown primary command switch.
Command Syntax:
dsjob [-file <file> <domain> <DataStage server> | -domain <domain> -user <user> -password <password> -server <DataStage server>]
<primary command> [<arguments>]

Valid primary command options are:
-run
-stop
-lprojects
-ljobs
-linvocations
-lstages
-llinks
-projectinfo
-jobinfo
-stageinfo
-linkinfo
-lparams
-paraminfo
-log
-logsum
-logdetail
-lognewest
-report
-jobid
-import


Could anyone please send me the right syntax?

Regards,
Sjordery.
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

i believe it should be:

Code: Select all

/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob -run -mode RESET Project_P1 Test_job1 
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, it doesn't know what "run" is but a careful examination of the valid options listed shows they all start with a dash so "-run". :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply