Problem while running job through shell script

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
amit_haldar
Participant
Posts: 7
Joined: Thu Feb 16, 2006 4:52 am
Location: Kolkata

Problem while running job through shell script

Post by amit_haldar »

Hi,

I am using Datastage 7.5.1.A edition. I am facing one problem. I am trying to run a job through shell script using the following comand in the DSHOME directory:

dsjob -run FINLANDPRJ test_contact_load

where FINLANDPRJ is the project name
and test_contact_load is the job name.

It's showing job aborted after 50 errors. But while running the same job manually through the client it's running perfectly ok without any error.

I have drilled down the matter and found out that the command is working fine if we are populating upto 60 columns. The moment I add 61st column it's showing error using the above command, but even after adding the 61st column it works perfectly ok while running it through client.

In another job although the number of columns is less than 60 but it was showing the same problem. It was due to the date field and after modification of the code it worked perfectly fine.

Please help me in solving this problem.

Thanks and Regards

Amit
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What is the warning you are getting?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Problem while running job through shell script

Post by chulett »

amit_haldar wrote:It's showing job aborted after 50 errors. But while running the same job manually through the client it's running perfectly ok without any error.
If the 'client' is the Designer, then I would bet it is not running 'perfectly ok' - but rather you have the warnings set to unlimited. It will look all green and good from the Designer, but the Director will show Finished (see log) and it will have more than 50 warnings in it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
amit_haldar
Participant
Posts: 7
Joined: Thu Feb 16, 2006 4:52 am
Location: Kolkata

Post by amit_haldar »

ArndW wrote:What is the warning you are getting? ...

It's showing job aborted after 50 errors
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Hi,

Have you check the log from datastage director after runing from shell.
what is the log it is showing ?
Go through the log...

Thanks,
Anupam
amit_haldar
Participant
Posts: 7
Joined: Thu Feb 16, 2006 4:52 am
Location: Kolkata

Post by amit_haldar »

Hi,

I got the message "job aborted after 50 errors" from the director.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The job won't abort until it hits 50 warnings by default, it always aborts on the first error. As stated earlier, the different behaviour is caused by differing number of allowed warnings. Get rid of your warnings and the behaviour will be the same.
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

amit_haldar wrote:Hi,

I got the message "job aborted after 50 errors" from the director.

I need warings which will be in yellow colors icons in Director...

Thanks,
Anupam
Post Reply