Page 1 of 1

unicode option in Basic transformer

Posted: Sat Dec 27, 2008 5:14 am
by mouni
The input columns from the file is taken to be of unicode . So , if some special characters come in the file , they get translated to the NLS set in the project. But in the basic transformer in the parallel job , i could not see the extended option .

Does this mean , basic transformers do not support NLS options.

Posted: Sat Dec 27, 2008 6:42 am
by ArndW
I cannot check right now, but can you not set the NLS attributes for the whole BASIC transform stage in the stage properties tab? Also, the character will be translated going into the stage but also when going out, so the net effect will be transparent to you; i.e. the character might get translated entering the stage, but will get translated back to the original value when going out.

Posted: Sat Dec 27, 2008 3:36 pm
by ray.wurlod
Character map translations are performed at the boundaries between DataStage and the "outside world". Within DataStage everything is managed in a UTF encoding of Unicode. Therefore (since a Transformer stage is not on any such boundary) there is no need to perform any character mapping in any kind Transformer stage.

Locales, though, are a different question, but not the one that was asked.

outside world -

Posted: Mon Dec 29, 2008 12:18 am
by mouni
so , when i read from a file which has some spanish characters, and if i set the unicode option in the sequential file stage . Is that enough ?

I have a issue with a degree like symbol used in spanish along with the address .

Posted: Mon Dec 29, 2008 12:22 am
by ray.wurlod
No. As well as the Unicode option for the column, you also need to set the NLS map name used to translate from however the data are encoded in the file. This is done in the Sequential File stage, not in the Transformer stage.

Posted: Mon Dec 29, 2008 12:32 am
by mouni
my question is with the term you used as "outside world" .
So , encoding happens only when a file /dataset is read or written from disk.

Posted: Mon Dec 29, 2008 2:16 pm
by ray.wurlod
File, yes. Data Set no (Data Set is "internal" to DataStage). File Set, yes. Database table, yes. FTP, yes. And so on.