Page 1 of 1

After Migration Iconv & Oconv have different results.

Posted: Tue Mar 19, 2013 8:48 am
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,

Posted: Tue Mar 19, 2013 10:18 am
by chulett
Out of curiousity, what version of DataStage was your old server running?

Posted: Tue Mar 19, 2013 12:51 pm
by chulett
Nice bit of detective work. :wink:

Posted: Tue Mar 19, 2013 12:57 pm
by joycerecacho
Yeah, now I have a lot of work....
:wink:

Posted: Tue Mar 19, 2013 1:22 pm
by ray.wurlod
Or you could simply change the NLS locale, particularly the TIME category.

Posted: Tue Mar 19, 2013 1:38 pm
by joycerecacho
Thank you Ray for complementing.

Posted: Tue Mar 19, 2013 3:00 pm
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.