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 > Problems with CODEPAGE and DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-06, 15:39
totto totto is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
Problems with CODEPAGE and DB2

Environment: DB2 Personal Edition ver 8.2 and DB2 Connect installed on a Norwegian Windows XP sp2 pc.

I run a rexx-program (using sqlda) to fetch data from a database (created with CODEPAGE 1252) containg a DATETIME column. The rexx-program fails n the OPEN operation with the following error message:

"SQLMSG = SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007"

Anyone knows how to set up DB2 Connect and making it able to fetch data from a database created with CODEPAGE 1252? The native local CODEPAGE is 850. The same test against a database created with CODEPAGE 850 runs without eny errors.
Reply With Quote
  #2 (permalink)  
Old 03-26-06, 15:55
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
What date format did you use?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 03-27-06, 02:07
totto totto is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
The date is formatted like "2005-10-01" (yyyy-mm-dd) in the database. When a read the database using DB2V7 sw, it works.. As mentioned, if I create a database with CODEPAGE 850, containing a table with an identical data-field it also works ok. The problem is the same if the problemdatabase is running on a local DB, og in a host environment.
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