run a batch script

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

Moderators: chulett, rschirm, roy

collabxchange
Premium Member
Premium Member
Posts: 34
Joined: Thu Aug 28, 2014 8:48 pm
Location: United States

Post by collabxchange »

chulett wrote:Don't really understand the "job scheduling in Director doesn't work" statement but I'll take it at face value.
The inbuilt scheduler in the DS director uses the AT.exe file of Windows OS. Microsoft have removed this file from 2012 Server edition for which IBM Infosphere is not able to use it anymore.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yup, the OP already noted that. Thanks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

syang@collaborative.com wrote:I run the script as followed:

c:\script_folder\script_job.bat host username password project DSN_Name UserName Password JobName
As noted already by priyadarshikunal, the batch / script as posted only expects four parameters on the command line. Anything after that is ignored and is expected to be hard-coded in the script itself. As posted. Now, if you've changed the script to make it more appropriate for this task then you'll need to re-post it before anyone can provide more help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Well the first post says the name to be CommonProviderExtract.bat and then in last post you mentioned script_job.bat, did you check if they are same script?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

My "if" was a little... rhetorical. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Craig is funny like that. Seems to me you can just run the dsjob command to kick off the job whenever you want. There are lots of posts on how to do that.
Mamu Kim
syang@collaborative.com
Premium Member
Premium Member
Posts: 33
Joined: Tue Sep 02, 2014 7:43 am

Post by syang@collaborative.com »

Thanks for all your help guys. I decided to scrap the example script and just write one from scratch. No problems at the moment.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Cool... so I'm going to close this conversation out and if you have something else that comes up, let's just start a new post rather than continue to pile on this one.

Thanks.
-craig

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