Check for an Integer and null
Posted: Fri Feb 15, 2008 1:17 am
Hi Friends,
I have one field which is Varchar datatype in source and I need to check if it is not null and if it not an integer I have to set it to null else populate the same and write error msg.But my output column is an Integer and I have used If IsNotNull(input.field) and Num(input.field) in stage variable(sv) and
in output column :If sv then input.field else 0.
and I also tried in other way round,eventhough I am getting the warning like this.
APT_CombinedOperatorController(4),3: Null string argument.
I am not using basic trnasfomer.
Can anyone help me how to check for an Integer of varchar datatype and numeric.
Thanks in Advance
Anju
I have one field which is Varchar datatype in source and I need to check if it is not null and if it not an integer I have to set it to null else populate the same and write error msg.But my output column is an Integer and I have used If IsNotNull(input.field) and Num(input.field) in stage variable(sv) and
in output column :If sv then input.field else 0.
and I also tried in other way round,eventhough I am getting the warning like this.
APT_CombinedOperatorController(4),3: Null string argument.
I am not using basic trnasfomer.
Can anyone help me how to check for an Integer of varchar datatype and numeric.
Thanks in Advance
Anju