CALLING DATASTAGE JOBS THROUGH UNIX SHELL SCRIPT

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

CALLING DATASTAGE JOBS THROUGH UNIX SHELL SCRIPT

Post by sankar.td »

Hi ALL,

Can you please give the syntax for calling datastage jobs from unix shell scripting (or) through windows command prompt.
sa
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use dsjob which is fully documented in either of the two Developer's Guide pdfs in the Command Line Interface chapter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

Post by sankar.td »

Hi chulett,

Thanks for your reponse.
I am to trying call datastage job from windows command prompt by using command "dsjob -run " .
But 'dsjob' command is not recognising.
Does i need to do any set up for this.
Please suggest me.
sa
mail2hfz
Premium Member
Premium Member
Posts: 92
Joined: Thu Nov 16, 2006 8:51 am

Post by mail2hfz »

Make sure you run dsjob command from Datastage installation directory.
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

Post by sankar.td »

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

Post by chulett »

You need to either fully path it, add the DataStage "bin" directory to your PATH or (as noted) run it from where it lives.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

Post by sankar.td »

Hi chulet,

I have included the path
"C:\IBM\InformationServer\Server\PXEngine\bin" in the environmental variable of $PATH in the datastage administrator.
and i am trying to call datastage job from this directory through windows command prompt,
still the dsjob command is not recognising.

Please help me if anybody knows.
sa
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That would be the wrong place to add it, you need to add it via Windows itself. My Computer <right click> Properties, then look for 'Environment Variables'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

Post by sankar.td »

Hi chulet,

Sorry for consuming your time.
I have added this path "C:\IBM\InformationServer\Server\PXEngine\bin", in the system variable of 'path' .
In windows environmental variables.
Still the dsjob command is not recognising!
Does i need to change my path?
sa
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Have you verified that 'dsjob' does indeed live in that directory? If correct, I believe you need to reboot before changes to $PATH are recognized, try that please if you can.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sankar.td
Participant
Posts: 42
Joined: Fri Jul 25, 2008 3:53 am
Location: pune
Contact:

Post by sankar.td »

Thanks for your response.
sa
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

sankar.td wrote:I have added this path "C:\IBM\InformationServer\Server\PXEngine\bin", in the system variable of 'path' .
In windows environmental variables.
Still the dsjob command is not recognising!
Does i need to change my path?
Given that you originally marked your operating system type as UNIX, dare I suggest that there is some confusion here?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Pfffttt... well, for sure I am now. :? Didn't even notice the UNIX notation on the first post after comments like:
I am to trying call datastage job from windows command prompt by using command "dsjob -run ".
I have added this path "C:\IBM\InformationServer\Server\PXEngine\bin", in the system variable of 'path' in windows environmental variables.
So... are you trying to do this from your DataStage server and is that server installed on a Windows or UNIX box? Or are you trying to use the 'dsjob' that is installed on the client PC nowadays?
-craig

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