After Migration Iconv & Oconv have different results.

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

After Migration Iconv & Oconv have different results.

Post by joycerecacho »

Hi everybody!

I worked for a project to migrate servers.

At the old one there were only server jobs and routines in basic, it was not the Enterprise Platform.

This week we are observing the processes at the new server in which runs the Enterprise platform v.8.5 and the same servers jobs and basic routines.

We noticed that a simple routine in basic returns different results when it runs at the old server and at the new one.

Follow the example:

Routine:
x = Iconv(Arg1, "D-E")
Ans = Oconv(x,"D-YMD[4,2,2]")

Arg1 = 01-02-2013

Results:

* OLD server .......... 2013-02-01
* NEW server ......... 2013-01-02

What can it be?
Is it about any NLS configuration?

Thank you guys!

Best regards,
Last edited by joycerecacho on Tue Mar 19, 2013 12:45 pm, edited 1 time in total.
Joyce A. Recacho
São Paulo/SP
Brazil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Out of curiousity, what version of DataStage was your old server running?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Nice bit of detective work. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
joycerecacho
Participant
Posts: 298
Joined: Tue Aug 26, 2008 12:17 pm

Post by joycerecacho »

Yeah, now I have a lot of work....
:wink:
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 »

Or you could simply change the NLS locale, particularly the TIME category.
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 »

Thank you Ray for complementing.
Joyce A. Recacho
São Paulo/SP
Brazil
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

I remember disabling NLS for TIME datatypes ( Under LOCALE, TIME/DATE -set to "OFF") for an entire project . Some of the 'out of the box' transforms using DateGeneric***** will not work the same way if migrated from an non NLS to NLS enabled environment.
Post Reply