Declaring constants

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
Harshagks
Participant
Posts: 3
Joined: Wed May 07, 2008 5:18 am
Location: Infosys Hyderabad

Declaring constants

Post by Harshagks »

Hi,

There is a requirement where i need to use a constant to declare the number of weeks. How can this column be populated as this needs to be used in a transformer with the incoming columns of source?
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

I think you can use a jobparameter for doing this.
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

If you want to hard code the value means is the value will constant always then you can put the constant value in Transformer or you can try with the row generator.

But if the value is constant for some time( Like if you want to change for each run then you can go with the job parameter)

Thanks,
Birendra
Birendra
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In a stage variable initialization expression, a stage variable derivation expression, an output link constraint expression or an output column derivation expression just use the constant (for example 52).

If it's not really a constant, then use a job parameter.
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