Order of stage variables fails a job

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
Novak
Participant
Posts: 97
Joined: Mon May 21, 2007 10:08 pm
Location: Australia

Order of stage variables fails a job

Post by Novak »

Hi all,

We have a parallel job that needs some improvements but is by no means complex. The last transformer in a job is preceeded by lookup stage that drops un-matched records. The transformer writes to dataset with some simple derivations.
The job was running fine in non-prod environments, but started failing on 4 production engine nodes (fifth one dedicated to conductor).
The failure message is "Player 9 terminated unexpectedly" with Player 9 being the transformer.
The stage variables causing this failure are:

svZoneLenId
------
Len(Trim(DecimalToString( To_Xfm.POS_ZONE_ID,"suppress_zero")) )

svZoneId
------
Trim(DecimalToString( To_Xfm.POS_ZONE_ID,"suppress_zero"))

When written as such the Dump Score advises there are 21 datasets.

If however, the order of stage variables is swapped so that svZoneId appears first, the job completes and the Dump Score advises there are 20 datasets instead.
I know these stage variables are not written in the best way but even as they are they should not be causing a failure?

Regards,

Novak
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

A few questions first,

Is it the complete derivation?
does it fail even if you do null handling properly?

I would atleast use len(svZoneId) as a derivation for length though.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Since they've already said that they "know these stage variables are not written in the best way" I wasn't going to bother to point that out. :wink:

And just for the record, no clue why the order would matter here seeing as how one is not dependent on the other. :? Seems like something to take to support.
-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 »

Reordering stage variables in a Transformer will not produce a change in the number of Data Sets in the score. Something else has also been changed in the job design, about which you have chosen not to inform us.

Perhaps you could post the two scores?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Novak
Participant
Posts: 97
Joined: Mon May 21, 2007 10:08 pm
Location: Australia

Post by Novak »

This will very likely be due to buffering.
Was trying to avoid changing too much of a job in production but prior to this there were two lookup stages linked one to each other.
In dev and sit, they tell me it was never an issue, but it was never tested with large volumes.
After changing from lookup to join stage the job is behaving better.

Thanks for chiming in.

Novak
Post Reply