Error While running dsjob utility

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
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Error While running dsjob utility

Post by sudeepmantri »

Dear all,

I am trying to run dsjob utility from an Unix script. Below is the simple content of the script

cd /FINODS/IBM2/InformationServer/Server/DSEngine
./dsenv
cd bin
./dsjob -domain virat:9081 -user dsadmin -password dsadmin -server virat -run -wait FINODS2 Test

Am getting the below error on this

exec(): 0509-036 Cannot load program ./dsjob because of the following errors:
0509-150 Dependent module libvmdsapi.so could not be loaded.
0509-022 Cannot load module libvmdsapi.so.
0509-026 System error: A file or directory in the path name does not exist.

Can anyone help me out with this please?

TIA,
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

First execute the dsenv file and after that trigger dsjob command
Nag
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Post by sudeepmantri »

As you can see in the script I have first sources the dsenv and then am trying to run the dsjob
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Oops i didnt that ./dsenv statement ....after executing dsenv try to echo some ds variable present in dsenv ( may be echo $DSHOME) just to make sure that it got executed successfully ...also check all the permissions on the executable ...
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You're not "sourcing" it correctly.

Code: Select all

. ./dsenv
Dot-space-dot-slash-dsenv.
-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 »

A) See previous reply. B) Mark as Resolved using button at top of screen.
-craig

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