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 > need help with collating sequence on AS400

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-03, 12:56
lcvaldetaro lcvaldetaro is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
need help with collating sequence on AS400

Hi,

We are porting an application that runs on DB2/Linux to be able to run on DB2/AS400. We are having problems with the sorting order, since our application is hosted on Windows, which uses ASCII , but the AS400 uses EBCDIC.

I understand that the way to do this is by defining the collating sequence perhaps thru a collate table. I also understand that there is an API to do that. However, our application is sold to customers, and the database needs to be created using scripts.

Is there a way to define a collate table on an AS400 database which will sort the database according with ASCII rules? Can that be done using scripts? Any example would be usefull.

Another thing: I read somewhere that in the case of teh AS400, the collating sequence has to be defined at the table level, not the database level.

Please help! Thanks!
Luiz
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