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
-
sjordery
- Premium Member
![Premium Member Premium Member](./images/ranks/premium.gif)
- Posts: 202
- Joined: Thu Jun 08, 2006 5:58 am
Post
by sjordery »
Hi All,
I am trying to run a Version 8 parallel job from unix script.
Below is the script I am using.
---------------------------------------------------------------------
#! /usr/bin/sh
dshome=`cat /.dshome`;
export dshome
PATH=$PATH:$dshome/lib;
export PATH
. $dshome/dsenv
dsjob -run -param source_file=$1 MY_Project Job1
echo "finished"
------------------------------------------------------------------
This gives error message "dsjob: command not found" while running.
But the same script is working fine on the Data stage 7.5 PX box.
Any suggestion do I need to add anything to run the job on V8 server?
-
ArndW
- Participant
- Posts: 16318
- Joined: Tue Nov 16, 2004 9:08 am
- Location: Germany
-
Contact:
Post
by ArndW »
the path to programs is in /bin, not /lib
-
sjordery
- Premium Member
![Premium Member Premium Member](./images/ranks/premium.gif)
- Posts: 202
- Joined: Thu Jun 08, 2006 5:58 am
Post
by sjordery »
Thanks a lot ArndW.
The script worked fine after changing PATH=$PATH:$dshome/lib; to PATH=$PATH:$dshome/bin;
Regards,
Sj.
-
sjordery
- Premium Member
![Premium Member Premium Member](./images/ranks/premium.gif)
- Posts: 202
- Joined: Thu Jun 08, 2006 5:58 am
Post
by sjordery »
Thanks a lot ArndW.
The script worked fine after changing PATH=$PATH:$dshome/lib; to PATH=$PATH:$dshome/bin;
Regards,
Sj.
-
nagarjuna
- Premium Member
![Premium Member Premium Member](./images/ranks/premium.gif)
- Posts: 533
- Joined: Fri Jun 27, 2008 9:11 pm
- Location: Chicago
Post
by nagarjuna »
mark the post as resolved
Nag