Page 1 of 1

Type cast

Posted: Sun Mar 04, 2007 11:17 pm
by vinodhraj
Hi,

I want convert datatypes inside the transformer.
Any soluton.

Thanks

Vinod

Posted: Sun Mar 04, 2007 11:20 pm
by DSguru2B
In server jobs just change the sql type of the target stage. The change is implicit, unlike parallel jobs.

Posted: Sun Mar 04, 2007 11:25 pm
by kumar_s
There are 'Conversion' available under 'Functions'. Iconv/Oconv are majorly used.

Posted: Sun Mar 04, 2007 11:29 pm
by DSguru2B
kumar_s wrote:There are 'Conversion' available under 'Functions'. Iconv/Oconv are majorly used.
ICONV/OCONV for datatype conversions :? , you sure Kumar?

Posted: Sun Mar 04, 2007 11:35 pm
by kumar_s
The main function of the Iconv is to convert the external data type into Datastage internal format, and Oconv is to convert the Datastge internals to External format. String to data or vice versa, or Decimal and its vice versa etc, are done using this.

Posted: Sun Mar 04, 2007 11:40 pm
by DSguru2B
Hmm, interesting. Server is still linient. Even if these functions are not used, the datatypes can be altered by specifying different target datatypes.

Posted: Sun Mar 04, 2007 11:41 pm
by kumar_s
DSguru2B wrote:Hmm, interesting. Server is still linient. Even if these functions are not used, the datatypes can be altered by specifying different target datatypes.
Yes for most of the cases.

Posted: Mon Mar 05, 2007 1:10 am
by chulett
Or just by using the data. Performing math on it, for instance.

Re: Type cast

Posted: Mon Mar 05, 2007 7:58 am
by ray.wurlod
vinodhraj wrote:Hi,

I want convert datatypes inside the transformer.
Any soluton.

Thanks

Vinod
There ARE no data types inside the Transformer in server jobs.

Can you be more specific as to your requirement?