My source file has a col A (datatype varchar(12)) and I want to populate target col B (Datatype Smallint) with the logic that if the col A is zero then col B = 1
Now the concern is that as the source col A is having length as 12, I can get anything from 1 zero to 12 zeros in my source file (i.e. 0, 00, 000, ...... , 000000000000).
![Sad :(](./images/smilies/icon_sad.gif)
I don't want to get into checking 12 if clauses here. Can anyone please suggest a smarter way to do this in the transformer stage of Datastage 8.5
![Question :?:](./images/smilies/icon_question.gif)