Pandora's Box - Using DS NLS

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

Pandora's Box - Using DS NLS

Post by ArndW »

I know that it used to be well-nigh to impossible to revert from a NLS installation to a non-NLS one. I wanted to ask if this has changed with the newer releases? Has anyone written a program that might take a .DSX or .XML export and remove NLS-information?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What happens when you try to import into a non-NLS DataStage a file exported from an NLS-enabled installation? Can you fiddle with the CharacterSet property in the file header?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Ray,

I remember back when DS was young(er) the export contained so many NLS-related attributes that whenever we tried to "fiddle" with the files and import them into non-nls accounts the import would either fail or the jobs were unusable. I was wondering if the NLS-enabling of a DataStage account was still akin to the mathematical trapdoor algorithm or Pandora's box .... once you start you can never go back...
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Sad to say I only worked with NLS enabled.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
battaliou
Participant
Posts: 155
Joined: Mon Feb 24, 2003 7:28 am
Location: London
Contact:

Post by battaliou »

I edited my uvconfig file (NLSMODE 0) to disable NLS in my current environment. I had to do a uvregen as well, but everything reverted ok.
3NF: Every non-key attribute must provide a fact about the key, the whole key, and nothing but the key. So help me Codd.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

battaliou wrote:I edited my uvconfig file (NLSMODE 0) to disable NLS in my current environment. I had to do a uvregen as well, but everything reverted ok.
Were you working a UNIX environment and was it Server or Px? If it is that easy it would take a great load off my mind with our impeding conversion to NLS.

Thanks for the info,
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The reason that this works is that UV-UTF8 encodes Unicode code points in such a fashion that any single-byte characters (for example ASCII) are still stored as single-byte characters, except for those that use the same code points as dynamic array delimiters (248 through 255).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
battaliou
Participant
Posts: 155
Joined: Mon Feb 24, 2003 7:28 am
Location: London
Contact:

Post by battaliou »

Hello Arnd

Converting to NLS was very easy. The knock on effect only seemed to affect dates. For example a standard date in non nls looks something like 2005/02/25 whereas in NLS its 2005 02 25.

Code: Select all

OCONV(DATE(),'DYMD[4,2,2]')
This issue affected some of our function calls.

Regards
Martin Battaliou
3NF: Every non-key attribute must provide a fact about the key, the whole key, and nothing but the key. So help me Codd.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Battaliou,

I realize that the conventions will change depending on the locale you are in; but I am worried about how DS will input & output the varied character sets - Big5, Shift-JIS, etc. It also seems that Px deals with these conversions quite differently than Server does; so I've decided to leave the proverbial box closed and just state categorically that there is no way back from NLS. It might not be the complete truth but it will suffice.

Btw, why did you end up reverting?

Thanks for the input!
Post Reply