dsjob
Moderators: chulett, rschirm, roy
dsjob
I am trying to run my job from command line.
dsjob -run -jobstatus projectname jobname.
I am getting like this:
Could not load program dsjob:
Dependent module libvmdsapi.so could not be loaded.
Could not load module libvmdsapi.so.
System error: No such file or directory.
Can any one give me suggestion on this?Do we need any set up to run datastage job from commandline?
And also please let me know is there any perticular path to run the jobs?
Thanks
reddy
dsjob -run -jobstatus projectname jobname.
I am getting like this:
Could not load program dsjob:
Dependent module libvmdsapi.so could not be loaded.
Could not load module libvmdsapi.so.
System error: No such file or directory.
Can any one give me suggestion on this?Do we need any set up to run datastage job from commandline?
And also please let me know is there any perticular path to run the jobs?
Thanks
reddy
You need to set the environment before the dsjob can be recognized by the kernal. Perform the following
Once you have done that, now try the dsjob command.
Code: Select all
cd `cat /.dshome`
. ./dsenv
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Re: dsjob
if you're executing the dsjob command make sure that your LIBRARY_PATH env. variable includes $DSHOME/lib path. If not add the $DSHOME/lib path to your .profilereddy12 wrote:I am trying to run my job from command line.
dsjob -run -jobstatus projectname jobname.
I am getting like this:
Could not load program dsjob:
Dependent module libvmdsapi.so could not be loaded.
Could not load module libvmdsapi.so.
System error: No such file or directory.
Can any one give me suggestion on this?Do we need any set up to run datastage job from commandline?
And also please let me know is there any perticular path to run the jobs?
Thanks
reddy
OR as previous post change to $DSHOME folder and execute ./dsenv file (hope that dsenv include the propoer LIB_PATH) which refelcts PATH and LIB_PATH to shell.
Re: dsjob
Hi Thanks for your responses.
My .profile is like this below:
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi
Is that correct? or what can i chane in my .profile?
My .profile is like this below:
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi
Is that correct? or what can i chane in my .profile?
uegodawa wrote:if you're executing the dsjob command make sure that your LIBRARY_PATH env. variable includes $DSHOME/lib path. If not add the $DSHOME/lib path to your .profilereddy12 wrote:I am trying to run my job from command line.
dsjob -run -jobstatus projectname jobname.
I am getting like this:
Could not load program dsjob:
Dependent module libvmdsapi.so could not be loaded.
Could not load module libvmdsapi.so.
System error: No such file or directory.
Can any one give me suggestion on this?Do we need any set up to run datastage job from commandline?
And also please let me know is there any perticular path to run the jobs?
Thanks
reddy
OR as previous post change to $DSHOME folder and execute ./dsenv file (hope that dsenv include the propoer LIB_PATH) which refelcts PATH and LIB_PATH to shell.
-
- Premium Member
- Posts: 210
- Joined: Wed Feb 16, 2005 7:17 am
Can you please give me clear idea.
where can i execute .dsenv
my ingine directory is /dstage/Ascential/DataStage/DSEngine
Where can i put these code(export DSHOME={YOUR_ENGINE_PATH})
Do you want me change my .Profile?
Thanks.
where can i execute .dsenv
my ingine directory is /dstage/Ascential/DataStage/DSEngine
Where can i put these code(export DSHOME={YOUR_ENGINE_PATH})
Do you want me change my .Profile?
Thanks.
aakashahuja wrote:You might be ok with this profile. Executing .dsenv from your engine directory should do the trick for you. You might also try the following
export DSHOME={YOUR_ENGINE_PATH}
. $DSHOME/dsenv
Hope it helps.
Cheers
Aakash
Are you running dsjob in a script?reddy12 wrote:Can you please give me clear idea.
where can i execute .dsenv
my ingine directory is /dstage/Ascential/DataStage/DSEngine
Where can i put these code(export DSHOME={YOUR_ENGINE_PATH})
Do you want me change my .Profile?
Thanks.
aakashahuja wrote:You might be ok with this profile. Executing .dsenv from your engine directory should do the trick for you. You might also try the following
export DSHOME={YOUR_ENGINE_PATH}
. $DSHOME/dsenv
Hope it helps.
Cheers
Aakash
If yes, just before calling dsjob include folloeing 2 commands:
cd `cat /.dshome`
. ./dsenv
If does not matter where you run these command from because the first commnad will navigate you to root (/) and you will have a file there called .dshome. If you vi this file, it will contain 1 line to point to your engine home. [/dstage/Ascential/DataStage/DSEngine in your case]
Hope it helps......
Assume everything I say or do is positive
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The dsenv script is to be found in your /dstage/Ascential/DataStage/DSEngine directory.
Make sure that not only /dstage/Ascential/DataStage/DSEngine/lib but also /dstage/Ascential/DataStage/PXEngine/lib are in your LD_LIBRARY_PATH, and precede any database libraries in the shared library search list.
Make sure that not only /dstage/Ascential/DataStage/DSEngine/lib but also /dstage/Ascential/DataStage/PXEngine/lib are in your LD_LIBRARY_PATH, and precede any database libraries in the shared library search list.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
cdwdev:/home/reddy$ cd `cat /.dshome`
cat: cannot open /.dshome
when i gave that command i am getting the above meesage.
and dsenv script is in this directory.
/dstage/Ascential/DataStage/DSEngine
in this directory i ran the script like below
cdwdev:/dstage/Ascential/DataStage/DSEngine$ dsenv
ksh: dsenv: cannot execute
here i got cannot execute...
cat: cannot open /.dshome
when i gave that command i am getting the above meesage.
and dsenv script is in this directory.
/dstage/Ascential/DataStage/DSEngine
in this directory i ran the script like below
cdwdev:/dstage/Ascential/DataStage/DSEngine$ dsenv
ksh: dsenv: cannot execute
here i got cannot execute...
DSguru2B wrote:Did you do what I asked you to do in my very first reply?
What happens when you execute the following?
Code: Select all
. ./dstage/Ascential/DataStage/DSEngine/dsenv
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
.../dstage/Ascential/DataStage/DSEngine$ dsenv
ksh: dsenv: cannot execute
I am getting this message ksh: dsenv: cannot execute
but i am able to see that dsenv script in that directory
I am thinking i don't have permissions to run that script.
ksh: dsenv: cannot execute
I am getting this message ksh: dsenv: cannot execute
but i am able to see that dsenv script in that directory
I am thinking i don't have permissions to run that script.
DSguru2B wrote:What happens when you execute the following?Code: Select all
. ./dstage/Ascential/DataStage/DSEngine/dsenv
You have to execute the script just like I showed you. Did you copy paste the command. Dont put ksh or sh before it. Just copy paste it as it is.
There is a dot, space, dot and then the fullyqualified path. Try that first.
There is a dot, space, dot and then the fullyqualified path. Try that first.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Thanks for your response
I copied same like you mentioned
i am getting same like below
I copied that and pasted here.I put dot space dot then path.Please check below
cbidev:/home/reddy$ . ./dstage/Ascential/DataStage/DSEngine/dsenv
ksh: ./dstage/Ascential/DataStage/DSEngine/dsenv: not found
I copied same like you mentioned
i am getting same like below
I copied that and pasted here.I put dot space dot then path.Please check below
cbidev:/home/reddy$ . ./dstage/Ascential/DataStage/DSEngine/dsenv
ksh: ./dstage/Ascential/DataStage/DSEngine/dsenv: not found
DSguru2B wrote:You have to execute the script just like I showed you. Did you copy paste the command. Dont put ksh or sh before it. Just copy paste it as it is.
There is a dot, space, dot and then the fullyqualified path. Try that first.