Row Generator stage in 9.1

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
rosecity
Participant
Posts: 25
Joined: Wed Apr 04, 2012 10:39 am

Row Generator stage in 9.1

Post by rosecity »

Hello,

I am working in DataStage v9.1 Fix Pack 2 and am using the Row Generator stage to generate a Date data type. I open the extended column properties and set a generation option of random and a limit option of some date (for example 2013-01-01).

The stage generates random dates but doesn't apply the limit filter. The data I am getting is like this:

Date
9562-12-03
8390-02-22
8107-03-22
...

I signed into a v8.7 FP2 environment and noticed that there is no problem applying a limit to the generation date.

Does anyone have an idea of why I can't limit the generated data.

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

Post by ArndW »

I believe you have discovered a bug. I tried at 8.7FP1 with seed 1 and limit 2013-01-01 and got

Code: Select all

Peek_3,0: test:1960-05-19
Peek_3,0: test:1960-05-12
Peek_3,0: test:1962-06-25
Peek_3,0: test:1963-07-04
Peek_3,0: test:1964-07-10
Peek_3,0: test:1963-08-02
Peek_3,0: test:1961-01-26
Peek_3,0: test:1964-02-03
Same settings at 9.1FP1

Code: Select all

Peek_3,0: test:8684-08-30
Peek_3,0: test:2876-04-04
Peek_3,0: test:6864-01-09
Peek_3,0: test:6669-10-05
Peek_3,0: test:5851-12-02
Peek_3,0: test:3697-04-19
Peek_3,0: test:2762-03-08
Peek_3,0: test:6147-02-25
You should submit this to your support provider.
rosecity
Participant
Posts: 25
Joined: Wed Apr 04, 2012 10:39 am

Post by rosecity »

Good thing I installed both those fix packs. :wink:

Thanks for the help!
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Just think of it as your contribution to Fix Pack 3!
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Limit property is not a date. It is a number of days since the beginning of your chosen epoch. Try (for example) using an Epoch of 1990-01-01 and a Limit of 20000.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rosecity
Participant
Posts: 25
Joined: Wed Apr 04, 2012 10:39 am

Post by rosecity »

Ray,

I tried your approach and got the same results. The Epoch option is definitely working in the Row Generator stage but no matter which value I set for the limit, it doesn't apply. Whether the Limit value is 20 or 20000, the stage generates the same values.

Thanks for pointing out that the Limit option isn't a date. I logged into my 8.7 environment and noticed this.
Post Reply