Page 1 of 1

"Transformer Stage Constraint" to be parameterised

Posted: Thu Dec 13, 2007 1:58 am
by tkbharani
DearAll

In transformer stage constraint I am using the following condition by passing a value ,through which the data is segregated and populated in a file. This value must be parameterised. I am using this in transformer stage constraint.How to Do this.

Example : Month=12

This "12" value must be passed as a parameter, as this changes every month.

Posted: Thu Dec 13, 2007 2:08 am
by WoMaWil
Look into the Manual or go to a training session.

Code: Select all

Month=pMonth

Re: "Transformer Stage Constraint" to be parameter

Posted: Thu Dec 13, 2007 2:32 am
by sachin1
i agree with WoMaWil , where the code is to be put in constraint of transformer stage to populate values in target seq file according to your parameterized month value.

Posted: Thu Dec 13, 2007 3:19 am
by tkbharani
Do I have to use Data Element or Month.tag.
Give a some suggestion so that I can search or proceed through the method.

Re: "Transformer Stage Constraint" to be parameter

Posted: Thu Dec 13, 2007 3:26 am
by baglasumit21
tkbharani wrote:DearAll

In transformer stage constraint I am using the following condition by passing a value ,through which the data is segregated and populated in a file. This value must be parameterised. I am using this in transformer stage constraint.How to Do this.

Example : Month=12

This "12" value must be passed as a parameter, as this changes every month.
Just declare a parameter say Month_param and use is in the constraint as

Month = Month_param.

Whats the difficulty in this?

Posted: Wed Dec 19, 2007 1:19 am
by lokesh_vee
Is the column what used for the constraint is it an integers (for example: 1, 2, ----, 11, 12) or it is a date column?

If the column being reference in the constraint is integer the suggestion provided above should be followed.

If the column being reference is a date then use the code below to fetch the month number. There are methods of achieving the same result.

Oconv(Iconv(Inp_Data.Date,"D2/"), "DM")=pMonth

pMonth is the job parameter.