Please help me...
I've got a iSeries (AS 400 with DB2), and I must connect to this database from Linux.
On AS400 I've this settings (which I can't change):
Language: Polish
Country/region: United States of America
Default system Keyboard: United States/Canada
Coded character set ID: 65535
Graphic character set: 697
Code page: 37
Locale: None
On my Linux box I've db2 cli (Command Line Processor for DB2 SDK 8.2.0)
When I set on Linux:
export LANG=en_EN
export LC_ALL=en_EN
export LESSCHARSET=latin2
I have got a error when I try connect to my database on AS400:
"SQL0332N There is no available conversion for the source code page "819" to
the target code page "870". Reason Code "1". SQLSTATE=57017"
So I change my LANG on Linux on this:
export LANG=pl_PL
export LC_ALL=pl_PL
export LESSCHARSET=latin2
I I can connect to database, but...I CAN'T select any data, because I've got error:
"SQL0332N Brak obs?ugi konwersji danych ze ?ród?owej strony kodowej "" na
docelow? stron? kodow? "". Kod przyczyny: "". SQLSTATE=57017"
What must I set to select data from my database, please help.
Thank
--
Pozdrawiam.
Grzesiek; scss (at) poczta.onet.pl
> Coded character set ID: 65535
65535 = FFFF = no coded character set
change this to a valid character set because "no character set" can't be
converted.
HTH
R.
> change this to a valid character set because "no character set" can't be
> converted.
Thanks for your fast reply.
The problem is I can't change any value on AS400 :-( , but I can chnage everything on Linux.
Thanks again
1)
in Client Acces Data Transfer (Windows) there's an option somewhat like
"force 65535 conversion".
Maybe you can find something similar in DB2 CLI?
2)
you can try to change the servicing jobs CCSID on the AS/400 with a
remote command
HTH
R.
BTW: I allways tell people to change the CCSID to a valid one.
--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre/Spammers loop
schijten/Spammers macht Euch vom Acker/Spamerzy wypierdalac'
Jonathan.
You might look at the Distributed Database Programming Guide online to see if
there are any tips for dealing with 65535 data:
ibm.com/iseries/db2/books.html
--
Kent Milligan
ISV Enablement - System i
km...@us.eye-bee-m.com (spam trick) GO HAWKEYES!!
>>> ibm.com/iseires/db2
(opinions stated are not necessarily those of my employer)
I solved this problem :-)
I used UnixODBC + iSeries ODBC for Linux, and in iSeries ODBC there is option to convert binary data to car data.
Thanks for your help and advices.
All the best
--
Best regards,
René H. Hartman
www.hac-maarssen.nl
"Grzesiek" <sc...@poczta.onet.pl> schreef in bericht
news:e8ioih$dc2$1...@news.onet.pl...
> What's your OS version?
05.03.0001