It been a long time since I posted last , but its good to be back amongst the guru's of DS.
I am facing an issue while trying to execute a datastage job by invoking DSJOB command via a Unix shell script
and this is making me go nuts all over.
What we are doing :
I have created a Unix KOrn shell script , which would invoke the dsjob command. This script is part of a larger automation module
and cannot be tampered now.
The script code is soemthing like :
Code: Select all
cd `cat /.dshome`
. ./dsenv
cd bin
./dsjob -run -mode NORMAL -jobstatus <project_name> <job_name>
What issues we are facing ??
1. We tested this script by executing it in TWO DIFFERENT Unix sessions , lets say User1 and dsadm , where dsadm is Datastage
administrator user
2. The script runs perfect with dsadm but with User1(Unix session) , the script falters with an error message like
Failed to open the project
Status Code = 39202
3. We even tried executing the following command for the said Unix sessions , but the command works good only under dsadm session but
not with User1
Code: Select all
./dsjob -ljobs project_name
I tried to check if I can can log into the same project(project_name) Datastage Designer using the User1 credentials, and surprisingly
I was not only able to do so , but I was able to execute a job from the Designer.
Is there any where else that I might look into ?
I know there are atleast 50 blogs scribbed under the "39202" banner in this forum, but none proves to be a good help.
I am looking forward to your replies.
If there are any documents/guides that can help me in similar situations , please share that too.
Thanks
Kumarjit Ghosh.