If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Anything equivalent to nlsparam parameter of to_char of oracle in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-06, 07:16
maheshbs maheshbs is offline
Registered User
 
Join Date: Mar 2006
Posts: 12
Anything equivalent to nlsparam parameter of to_char of oracle in DB2

Hi,

Is there anything equivalent to nlsparam parameter of to_char of oracle in DB2.Iam using MTK for conversion from oracle to DB2.

There is a UDF ora.to_char with the nlsparam parameter,but then for nls_calendar='persian' value for nlsparam in Oracle,there is no equivalent in ora.to_char of DB2.

It returns the american calendar and not the persian calendar.Hence anybody please provide the necessary solution on this.

Thanks in advance
Mahesh.B.S
__________________
Mahy
Reply With Quote
  #2 (permalink)  
Old 06-29-06, 11:01
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
AFAIK, there is no such thing in DB2 as to_char's nlsparam of Oracle.
And certainly for calendars, I believe DB2 only knows the Gregorian calendar.

Most likely there will be UDFs around to convert between calendars, but it seems that you will need to either manually apply this UDF after running ora.to_char, or modify ora.to_char such that it calls that UDF when necessary.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On