Help needed in scheduling script using crontab

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
bhaskarjha
Participant
Posts: 67
Joined: Thu Apr 06, 2006 7:13 am

Help needed in scheduling script using crontab

Post 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
Bhaskar Jha
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

you need to set your environment. You need to run the dsenv to set the environment variables.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You are manually scheduling jobs into cron? Don't. Use Director which will build a proper crontab entry for you automagically.
-craig

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