Exec Command Stage in a job sequence

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vimali balakrishnan
Participant
Posts: 60
Joined: Mon Dec 27, 2004 3:38 am

Exec Command Stage in a job sequence

Post by vimali balakrishnan »

Hi,

I tried executing a batch file using Exec Command Activity in a job sequence.The Batch file has the following command,
dsjob -run -mode NORMAL -warn 50 -wait IBIS test1.
This command is used to execute a Datastage job from Command prompt.this command works fine in the cmd prompt.But the Exec Command Activity is not executing properly,it is displaying the following message,
Reply=1
Output from command ====>
Batch1.bat: dsjob: not found

Can you clarify me????

Thanks,
Vimali.
dfong
Participant
Posts: 35
Joined: Tue Feb 25, 2003 9:59 am

Re: Exec Command Stage in a job sequence

Post by dfong »

Make sure that you have all PATH settings correct for the shell you execute your batch file. To play safe you can consider to add a line to source the 'dsenv' file in your batch script.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Your PATH must include the DSEngine/bin directory.
dsxuserrio
Participant
Posts: 82
Joined: Thu Dec 02, 2004 10:27 pm
Location: INDIA

Post by dsxuserrio »

I find using full path safer.
${DSHOME}/bin/dsjob
where DSHOME is DSEngine.
dsxuserrio

Kannan.N
Bangalore,INDIA
vimali balakrishnan
Participant
Posts: 60
Joined: Mon Dec 27, 2004 3:38 am

Post by vimali balakrishnan »

Thanks,

The issue got solved....

Vimali.
Post Reply