dsjob

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
dannywcw
Participant
Posts: 31
Joined: Wed Feb 07, 2007 1:42 am

dsjob

Post by dannywcw »

Hi all,

Can anyone tell me why is my command is not running the job? please help

12 14 * * * su - dsadmin -c "./dsprod01/LOGICA_TRANS/daily/script.sh" >> /dsprod01/LOGICA_TRANS/daily/aaa.log
dwcw
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Where are you running this command from? And what is the content of the Script?
What is "12 14 * * * " used for?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dannywcw
Participant
Posts: 31
Joined: Wed Feb 07, 2007 1:42 am

Post by dannywcw »

this is a cron command. the 12 14 * * * is the time
the script is used to run datastage job


cron command is
12 14 * * * su - dsadmin -c "./dsprod01/LOGICA_TRANS/daily/script.sh" >> /dsprod01/LOGICA_TRANS/daily/aaa.log


Content of the script is
su - dsadm -c "/ardent/Ascential/DataStage/DSEngine/bin/dsjob -run -mode NORMAL -param FILE_NAME=inp1-${_year}-${_month}-${newday}.unl -param OUTPUT_FILE_NAME=${_year}-${_month}-${newday}-inp.unl LOGICA_TRANS3 logica_inp_inss" >> /dsprod01/LOGICA_TRANS/daily/crn_inp.log
dwcw
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Alright, does your sript calls the job, if it is called from command line. (Not thought Cron). Doesn't it require any input argument as parameter during the call? Do you get any error message?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dannywcw
Participant
Posts: 31
Joined: Wed Feb 07, 2007 1:42 am

Post by dannywcw »

Yes this command will call logica_inp_inss job.
Parameter is included in the command.
No error message.
dwcw
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Check whether your user id has access and an entry to cron.alow file.
Also try to schedule the same job for Today at some futher time.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kumar_s wrote:Check whether your user id has access and an entry to cron.alow file.
It wouldn't already be in cron if that wasn't setup already, Kumar.

So Danny... you need to tell us - is cron launching the script and the job isn't starting? Or is cron not even launching the script? If you've got a cron problem, work with your SA to resolve it. If the script is being launched, what shows in the redirected log file or the job's log? If nothing, I'd suggest you send everything to your 'aaa.log', specifically including 'standard error' there as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

chulett wrote: It wouldn't already be in cron if that wasn't setup already, Kumar.
Correct point, though.
Some time back I faced similar problem. It would have been scheduled and would able to find the entry in cron as well. But the job wouldn't get triggered. It was some permission related issue, but can't recall what exactly was the change made to over come that.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply