unicode option in Basic transformer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

unicode option in Basic transformer

Post 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.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

outside world -

Post 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 .
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply