Divident by zero

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

vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Divident by zero

Post by vikibemech »

I am getting an error as below and not able to move forward to resolve. Please advice if any.

DataStage Job 1130 Phantom 10132

Program "JOB.867233938.DT.1505838351.TRANS4": Line 109, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 110, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 111, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 112, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 109, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 110, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 111, Division by zero, zero returned.

Program "JOB.867233938.DT.1505838351.TRANS4": Line 112, Division by zero, zero returned.

When I am viewing the Performance Statistics in the job, not able to see any error links in any of the stages. But job is getting aborted and causing dependent job to fail (not able to run).
Vignesh Kumar N
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You have to look into the TRANS4 lines 109 to 112 to see what operation is being carried out.

My assumption is that you are doing some arithmetic division in a transformer stage in your job.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I think we've gone beyond assumption here. :wink:

Check your math and add an explicit check to stop dividing by zero.
Last edited by chulett on Thu Aug 06, 2009 9:19 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Moderator: please move to server forum
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Re:Divident by zero

Post by vikibemech »

In the job I have many transformers. I am not clear what Trans4 mean? Coudl you please explain briefy.
Vignesh Kumar N
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It is the transformer that is called "TRANS4" in your designer.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, it is the fourth transformer as the crow counts.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Look in RT_BP1130/JOB.867233938.DT.1505838351.TRANS4 in your project. The Transformer stage name will be identified in the comments.

Look around the line numbers mentioned to find out what is being divided by what, then change your design to intercept and prevent zero divisors.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Dividend by zero

Post by vikibemech »

thanks for the info. I walked through the trans4 stage and there is no arithmatic division in any of the column. My design is like this Seq file-> Agg -> Hash file ->transformer.

Hash file input is 10K records but output is only 33 records(which is the input for Transformer). I am not clear where the other records are? Please advice if any.
Vignesh Kumar N
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Have you checked any stage variables in the transformer stage too, as well as output link derivations?

In the file Ray pointed you to, what is contained at line 109 through line 112?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Post by vikibemech »

I have Stage Vaiable with If else if conditions. No arithmatic calculation found. In stage Vaiable, operator used is <>. nothing else.
Vignesh Kumar N
vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Dividend by zero

Post by vikibemech »

I have zero's in this row like other rows. But the issue is only with these rows.
Vignesh Kumar N
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

And in answer to my other question (a re-quote of Ray et al's)...? :?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
vikibemech
Participant
Posts: 46
Joined: Fri May 02, 2008 1:11 am
Location: Chennai

Dividend by zero

Post by vikibemech »

Policy no, Value 1, Value 2, Vlaue 3, Value 4
12345, 1, 0, 0, 0
23456, 0, 1, 0, 0
34567, 0,0, 0, 1
53265, 0, 0, 1, 0
Vignesh Kumar N
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How about you go to that TRANS4 file and actually post the code from the lines mentioned plus several on either side, let us take a look?
-craig

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