Hi gurus, I need to convert the String Data into Integer in Abinitio Reformatt Component. for eg 100(String datatype) to 100(integer) Are there any in-built functions for that? Thanks farid

Hi,
As per my knowledge there is no such in-built function for that purpose.
Ab Initio does not support directly string to integer typecasting.

But you can convert the string to zoned decimal and assign the decimal to a integer field.

Thanks and regards,
Atish

Hi ,

I think what u could do is use a temporary variable
ascii decimal(3) temp;
assign value of string to that temporary variable

then assign value of temp to out.data ::

where data is integer data type

Thanks,
Shailesh

Hi
Simply type cast it.

Let string(10) st_number;
Let integer(5) in_number;
In_number =3D (decimal(10)) st_number;
Out.value::in_number;

Hope this helps.

ShivaPrasad.K.N,