Special Characters replaced by <SUB>

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

Post by ray.wurlod »

How is the file encoded, and what NLS map are you using in the DataStage job? The two need to be compatible, if not identical.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

The NLS map is the project default: ISO-8859-1
And about your first question "How is the file encoded?", what do you mean?
I didnt get it.
:oops:

Best regards,
Joyce A. Recacho
São Paulo/SP
Brazil
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

I derivated the text field like:

NOM_DEV (Char 70 | Unicode | NotNull)

If Isnull(Lnk_Ler_Contratos.NOM_DEV) Then
Str(' ',70)
Else
Left(Lnk_Ler_Contratos.NOM_DEV:Str(' ',70),70)
Joyce A. Recacho
São Paulo/SP
Brazil
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Because the file contains accented characters, it cannot be plain ASCII, it must be encoded somehow. Perhaps it is encoded using ISO-8859-1, perhaps using a different encoding. You also need to ascertain what the mapping used in the DB2 table is, for the same reason.
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