Page 1 of 1

Field Function

Posted: Thu Oct 14, 2004 2:13 pm
by pkl
Hi,

Can I use a job parameter in the Field function as the string?

Thanx,
Preethi

Posted: Thu Oct 14, 2004 2:22 pm
by dhiraj
If you are using the field function in a transformer, then you can.
Remember you should enclose the parameter name within # symbol.

eg Field(#DSN#,'|',1)
Where DSN is the parameter name.


Dhiraj

Posted: Thu Oct 14, 2004 2:32 pm
by pkl
Hi Dhiraj,

I tried that , then it gave me an error saying expecting an exrpession. When I enclosed it , it returned a null string.

Thanx
Preethi

Posted: Thu Oct 14, 2004 2:36 pm
by chulett
Derivations are one of the places where Job Parameters should not be wrapped in pound signs. Try just using DSN in the function.

Posted: Thu Oct 14, 2004 3:38 pm
by dhiraj
oops. Craig is right. don't know how i made that mistake. :oops: We use parameter for batch start date in almost every job !