Different results in every run

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
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Different results in every run

Post by srinivas.nettalam »

Hi All,
I developed a job with Oracle Connector as source ,then a lookup stage with 4 reference links out of which one link is a dummy lookup to populate a batch id and the other three come from a single oracle connector with a copy stage after that.The three reference links do not have any duplicates on the key column and the same reference key is looked up by three different stream keys.After the lookup I have plenty translations and transformations to do in transformer based on the lookedup values.When I run the job filtering a set of records (for e.g where itemid=xxx ) the output is as desired and when I remove the filter and run for the whole data the column values are scrambled.Only records with valid reference values are populated perfectly and others are populated with values which are not related to the field in anyway..When I run the job again ,the values populated in the previous run gets changed for the same columns though source data remains unchanged.

I tried separating the reference form copy stage to three individual reference stages and partitioning the data on the item field,the output was still not as expected.

Please suggest a way to troubleshoot this situation.
N.Srinivas
India.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are your data partitioned on the inputs to the Lookup stage (assuming it's first after the Connector stage)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

Lookup is rght after the connector(source) .The connector is running in Sequential mode and I made Auto partition in lookup.When I tried parititioning the data on a field Item.I made hash partition on input and entire on the reference.The results were not as expected even in that case.
N.Srinivas
India.
spoilt
Participant
Posts: 7
Joined: Mon Mar 25, 2013 7:17 am

Post by spoilt »

Use round robin after Source (which is sequencial) and Entire for every reference link.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

I assume by default datastage assigns Round Robin to a stage following a stage running sequential mode.
N.Srinivas
India.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

I rebuilt the job by separating the references to different look up stages and rewrote the stagevariables and constraints.It worked.
N.Srinivas
India.
Post Reply