dsjob execution

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
nandela.sudheer
Participant
Posts: 39
Joined: Mon May 19, 2008 7:22 am

dsjob execution

Post by nandela.sudheer »

I want to run the dsjob and orchadmin from any directory location in Unix.

I have added one variable(/opt/IBM/InformationServer/Server/DSEngine/bin) in /etc/profile file, but not able run. Please let me know the steps.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You need to add the path to the binary directory to your $PATH environment variable.

Code: Select all

export PATH=$PATH:/opt/IBM/InformationServer/Server/DSEngine/bin
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right. If you don't explicitly path a command so it knows where to find it, you've got to provide a 'search path' so it knows where to look for it - i.e. an ordered list of directories to search thru. That is the $PATH environment variable.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nandela.sudheer
Participant
Posts: 39
Joined: Mon May 19, 2008 7:22 am

Post by nandela.sudheer »

I am unable to run the Datastage job by using dsjob -run projectname jobname from /opt/IBM folder after added the PATH variable in .profile file. Do I need update any file for running Datastage job from any directory location in Linux.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Specify for us which account's .profile you added the PATH to and what account you are using to do the testing. After adding, did you log out and back in? I'd also suggest you show us the $PATH change that you made.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nandela.sudheer
Participant
Posts: 39
Joined: Mon May 19, 2008 7:22 am

Post by nandela.sudheer »

Please let me know i missed any below steps.

1. Added export PATH=$PATH:/opt/IBM/InformationServer/Server/DSEngine/bin"" in .profile file present in /home/dsadm
2. restarted DS Server.
3. I unable to run Datastage job by using dsjob command from /opt/IBM location, but able to run DSEngine/bin path.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Again, when you say "I unable" - who are you logging in as? If it's not dsadm, then try that. If it is in fact dsadm, show us the .profile change you made. Also, this should be in your dsenv file. Technically.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For orchadmin you also need to have APT_CONFIG_FILE and APT_ORCHHOME environment variables set.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

The UNIX "which" command should tell you if you have your PATH set correctly. For example:

$ which dsjob
/code/IBM/InformationServer/Server/DSEngine/bin/dsjob
$ which xxx
which: 0652-141 There is no xxx in /usr/bin /etc /usr/sbin /usr/ucb /usr/local/bin /usr/bin/X11 /sbin /usr/vac/bin /usr/vacpp/bin /code/app/oracle/product/11.2.0/dbhome_2/bin /code/IBM/InformationServer/jdk/bin /code/IBM/InformationServer/Server/DSEngine/bin
$
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

and you sourced dsenv beforehand right?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

PaulVL wrote:and you sourced dsenv beforehand right?
My thought as well..
Post Reply