Page 1 of 1

Help needed in scheduling script using crontab

Posted: Fri Jul 14, 2006 10:13 am
by bhaskarjha
Hi,
I am using crontab to schedule my datastage job.
My crontab file looks like

30 20 7 7 1 /home/temp1 > /home/temp1.log

And temp1 file contains:

cd /home/dsadm/Ascential/DataStage/DSEngine/bin

dsjob -run -mode NORMAL -wait -jobstatus ProjectName Job_Name

but after scheduling the crontab, its giving error "dsjob not found".

Can anyone please help.
Thanks,
Bhaskar

Posted: Fri Jul 14, 2006 10:15 am
by DSguru2B
you need to set your environment. You need to run the dsenv to set the environment variables.

Posted: Fri Jul 14, 2006 10:16 am
by chulett
You are manually scheduling jobs into cron? Don't. Use Director which will build a proper crontab entry for you automagically.