Trigger DataStage Job through PeopleSoft Process Scheduler
Moderators: chulett, rschirm, roy
I also like Craigs advise about sourcing the dsenv file in the script. You could get this error if you don't:
error while loading shared libraries: libvmdsapi.so: cannot open shared object file: No such file or directory
By the way, the return code is 127 when you get this error. Someone also suggested getting the standard error from the script too. This may help.
error while loading shared libraries: libvmdsapi.so: cannot open shared object file: No such file or directory
By the way, the return code is 127 when you get this error. Someone also suggested getting the standard error from the script too. This may help.
Michael Gohl
Hi Arnd/Craig..ArndW wrote:add "-mode NORMAL" to your command.
I didnt mean to ignore you...
If you look at my previous post,, in my code I have included "-mode Normal" in my command.. but still then it did not return any value or error code..
Here is the command we used in the shell script file..
Code: Select all
dsjob -run -mode NORMAL -jobstatus -wait HCM89_EPM90DEV SEQ_J_Stage_PS_ABS_CLASS_TBL
RETURN_VALUE=$?
echo "Return Value $RETURN_VALUE"
we are getting output as:
dsjob -run -jobstatus -wait
Return Value 127
did I include mode NORMAL correctly?
Craig,
Can you explain in brief about sourcing dsenv file? I did not understand what you meant..
Thanks a lot for your help.. and again I am not ignoring you guys..
I don't think you put the command in - look at your output...Here is the command we used in the shell script file..Code: Select all
dsjob -run -mode NORMAL -jobstatus -wait HCM89_EPM90DEV SEQ_J_Stage_PS_ABS_CLASS_TBL RETURN_VALUE=$? echo "Return Value $RETURN_VALUE" we are getting output as: dsjob -run -jobstatus -wait Return Value 127
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Bare bones, add something like this to your script:
And let us know if that helps.
Code: Select all
cd `cat /.dshome` && . ./dsenv
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Actually, when we looked at your post previous to ours, it is not included. Hence the comment.sri75 wrote:If you look at my previous post,, in my code I have included "-mode Normal" in my command.. but still then it did not return any value or error code..
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Hi Craig,, still its not working and here is the code I gavechulett wrote:Bare bones, add something like this to your script:
And let us know if that helps.Code: Select all
cd `cat /.dshome` && . ./dsenv
Code: Select all
cd `cat /.dshome` && . ./dsenv
echo "DATE and Time Is:"
date
echo "Hello"
dsadmin -listprojects
RETURN_VALUE=$?
echo "Return Value $RETURN_VALUE"
Did I miss some thing?
Hard to say. What happens when you execute that code snippet from the command line, does it work? And we'll never know what's going wrong in your script if you don't add better debugging information.
It's been mentioned as least three times that you need to capture 'standard error' in your script so you can see what is going wrong, something more than just the 127 return code.
It's been mentioned as least three times that you need to capture 'standard error' in your script so you can see what is going wrong, something more than just the 127 return code.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 82
- Joined: Tue Jan 22, 2008 10:37 am
- Location: UK
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: