dsjob command not executing in my deployment environment

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

dsjob command not executing in my deployment environment

Post by saiwelcomes »

Hi All,

I have usedd dsjob command to trigger the jobs in Server routines. Everything is working fine in my development environment. When I moved all the jobs into deployment environment there is no access to user to execute the dsjob command. What permissions to be given to the user to access the dsjob command and how to apply the required permissions?

Thanks in advance
Regards,
Sai Krishna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Talk to your SysAdmins about having them add the 'execute' permissions to dsjob your user seems to be missing. Are you sure it's just a permissions problem?
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Compare dsjob's file permissions and ownerships as well as users and their groups across both servers.
Choose a job you love, and you will never have to work a day in your life. - Confucius
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Does the ID you are credentially mapped belong to the "dstage" security group? (if you stayed with recommended defaults)


Can you paste the error message you are seeing?
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

@Eric,

I can not compare the credentials across both the servers since this user is not the admin user to check all the details.

@PaulVL

Yes. The user id given in the deployement server belongs to dstage group. But I am helpless.

Please help me.
Regards,
Sai Krishna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Please clarify for us exactly what your issue is, as it is a little too nebulous right now. Are you seeing an error? What happens when you try to execute dsjob?
-craig

"You can never have too many knives" -- Logan Nine Fingers
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

Hi,

I am seeing the error message 'dsjob command not found' when i put DSLogWarn message in my routine.
Regards,
Sai Krishna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You should have led with that, this has nothing to do with "access" in the sense we were all thinking you meant. This just means that your $DSHOME/bin directory (where the command lives) is not in your PATH statement. So, either update your PATH in the dsenv file to include that directory or fully path the executable in your routine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

yes It worked... :D Thanks a ton chulett!!!
Regards,
Sai Krishna
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

Hi All,

I have added the below code snippets in my routine code before the dsjob call:

cmd$DSENV = "cd '":p_DSHOME_DIR:"'":char(10) ;
cmd$DSENV := ". ./dsenv":char(10) ;

Then to the above statements the actual dsjob command will be appended as below:

outputJob$Trigger = cmd$DSENV
outputJob$Trigger := "dsjob --all the params required for dsjob--"

This is the workaround for the issue.
Regards,
Sai Krishna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It is a solution to the issue.
-craig

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