How to control the output of column in Column Generatorstage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
balu536
Premium Member
Premium Member
Posts: 103
Joined: Tue Dec 02, 2008 5:01 am

How to control the output of column in Column Generatorstage

Post by balu536 »

Hi,
I'm using Column Generator stage and generating a column name DUMMY.Is there any possible way to control this column value i.e can i pass 1 as value under this column for all the incoming records,if so please explain me the procedure.



Regards,
Balakrishna
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Re: How to control the output of column in Column Generators

Post by tehavele »

Absolutely.
Use 'Cycle' method.
Set Intial Value=1
Increament by = 0
Tejas
balu536
Premium Member
Premium Member
Posts: 103
Joined: Tue Dec 02, 2008 5:01 am

Re: How to control the output of column in Column Generators

Post by balu536 »

Will you please explain the same in detailed manner,I mean the "Cycle" funda(Where actually it needs to be set)


Regards,
Balakrishna
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Re: How to control the output of column in Column Generators

Post by tehavele »

Yes.Deifine the required field lets say as ID in the Column Generator Stage.In the OutPut page of this stage go to 'Edit Column Meta Data Box' by right clicking ID column and selecting 'Edit Row' option.Now in the 'Properties' option select 'Generator' box.Set 'Type=Cycle', Initial Value=1,Increament =0. This would ensure ID=1 in all the rows.
Tejas
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Re: How to control the output of column in Column Generators

Post by tehavele »

Make sure that new column (ID) is an integer one.
Tejas
balu536
Premium Member
Premium Member
Posts: 103
Joined: Tue Dec 02, 2008 5:01 am

Re: How to control the output of column in Column Generators

Post by balu536 »

Thank you Teja.It's working
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark this thread as Resolved using the green button at top.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply