Sequential Files : Null values are converted to symbol €

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Not heard of this change from windows. This change also does not look logical. Pls verify one more time

Regards
Sreeni
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage represents null internally using a single byte with bit pattern 1000000 (or Char(128)). Windows uses this byte to represent the Euro symbol.

I believe there's a way to change the DataStage internal representation, but can't recall what it is (and am not currently working on a Windows server).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pascalnicolasl
Premium Member
Premium Member
Posts: 12
Joined: Thu Dec 18, 2008 8:55 am

Post by pascalnicolasl »

Thanks ray.wurlod

If anyone has a workaround to solve this bug, please let me know
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you reading from or writing to the sequential file when you have this problem?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pascalnicolasl
Premium Member
Premium Member
Posts: 12
Joined: Thu Dec 18, 2008 8:55 am

Post by pascalnicolasl »

Hello

I am writing data in a sequential file.

Thanks in advance,
Nick
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Can't you simply avoid sending an actual NULL to any fields? For example, make sure they are explicitly set to an empty string - "" - instead? Or is there more to the problem? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For text files, change the representation of NULL (either at the file level or at the individual column level) from "" to something else, perhaps "<NULL>".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SHARAD123
Premium Member
Premium Member
Posts: 54
Joined: Wed Jan 09, 2008 12:05 am

Post by SHARAD123 »

Hi,

I am not sure whether this will work out. Try converting the column using Iconv(col_name,"MCP"). This converts the non readable characters to "." a period.

EReplace to remove the "." period.

Regards,
Sharad
222102
Post Reply