Page 1 of 1

dsjob execution

Posted: Sat Sep 10, 2016 1:34 am
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.

Posted: Sat Sep 10, 2016 4:29 am
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

Posted: Sat Sep 10, 2016 10:35 am
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.

Posted: Sat Sep 10, 2016 11:57 am
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.

Posted: Sat Sep 10, 2016 6:14 pm
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.

Posted: Sun Sep 11, 2016 10:20 am
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.

Posted: Sun Sep 11, 2016 1:01 pm
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.

Posted: Mon Sep 12, 2016 5:00 pm
by ray.wurlod
For orchadmin you also need to have APT_CONFIG_FILE and APT_ORCHHOME environment variables set.

Posted: Tue Sep 13, 2016 2:06 pm
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
$

Posted: Tue Sep 13, 2016 2:33 pm
by PaulVL
and you sourced dsenv beforehand right?

Posted: Sat Sep 17, 2016 4:34 am
by ArndW
PaulVL wrote:and you sourced dsenv beforehand right?
My thought as well..