Run batch file to call a DS Job to run

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

Moderators: chulett, rschirm, roy

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

Post by chulett »

No, you don't need a "signon" file to make this work. While you could certainly use one, it is not required. You will need to get your syntax correct, however, and the post you linked to had good information on the subject in addition to what's already here. Did you try adding the "-domain" option to your command line?

What happened to the name of the job to run? :?

You are also probably getting the ERRORLEVEL set and can't see it because nothing is checking for or displaying it. Fix your dsjob syntax, remove the 'CLS' from the batch file and run it like this:

CMD /Z YourBatchFile

Another recent post with information on using dsjob in 8.x:

viewtopic.php?p=382251
-craig

"You can never have too many knives" -- Logan Nine Fingers
ylai20
Participant
Posts: 15
Joined: Tue Jun 08, 2010 10:12 pm

Post by ylai20 »

Great! I just add in -domain <servername:9080> and it works!

Code: Select all

dsjob -domain BI_SERVER:9080 -user
admin -password 123 -server BI_SERVER -run -jobstatus -warn 1 BI BI_DS_JOB
Thanks!
Post Reply