Conditional ABORT after 50 errors???

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Conditional ABORT after 50 errors???

Post by tomengers »

Hi Gang ...

Been reading posts but do not see straight-forward way to say "if I have more than 50 validation errors (out of range, etc.) then I want to abort the job". I understand about an after job routine, but is there a way within DataStage to accomplish this?

Thanks in advance ...

... tom
RAJARP
Participant
Posts: 147
Joined: Thu Dec 06, 2007 6:46 am
Location: Chennai

Post by RAJARP »

Hi Tom,
If my understanding is correct,you can go for the following solution.
After hitting the run option,a window would open.In that select "LIMITS" tab and then select "Abort Job after"and give the number of warnings as 50.But am not sure that this is what you have asked.
regards,
rajarp
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Post by tomengers »

Rajarp ...

Thanks ... I know about the LIMITS method, but was hoping there was another more direct way such as IF ERROR_CNT > 0 MOVE 3 TO ABORT_STATUS.

Guess I will have to chalk that up to wishful thinking ...

... tom
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

One way of doing this - Setting up a reject link. In the constraints, specify Abort after row value 50.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Post by tomengers »

Narasimha ...

Ha ... great answer ... so simple I never thought of it.

thanks ...
Post Reply