473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

DB2CODEPAGE Variable

I am trying to get a better understanding of client side settings,
particularly DB2CODEPAGE.

I have a back-end remote unix db that is UTF-8 (1208). On my remote
clients, I see that my data loads(inserts) behave properly by setting
DB2CODEPAGE=1208 on the cleint side. Prior to setting this, I assumed
that the client machine's 'locale' would dictate behaviour. Apparently
not.

Can someone shed some light on the following -

1. What is the difference in using the "export DB2CODEPAGE=1208"
versus "db2set DB2CODEPAGE=1208", when setting this on the remote
client side ? Is one preferred over the other. Any behavior
differences ?

2. For the remote client, Is there a similar variable for db2cli.ini
file and should I set that as well ?

3. Do I need to set this on the server side as well ?

4. How do apps that use ODBC get this information ? Is it from the
db2cli.ini file ?

Apr 27 '06 #1
2 19380
1. What is the difference in using the "export DB2CODEPAGE=1208"
versus "db2set DB2CODEPAGE=1208", when setting this on the remote
client side ? Is one preferred over the other. Any behavior
differences ?

(AW) Export sets the variable only for your current shell, where the
variable was set. db2set sets the variable for all clients in the
environment where the variable was set. If you set the variable at
both levels shell value will be taken.

2. For the remote client, Is there a similar variable for db2cli.ini
file and should I set that as well ?

(AW) I'm not sure if you can set the variable at this level. To my
knowledge - no.

3. Do I need to set this on the server side as well ?

(AW) DB2CODEPAGE is set only at the client. You can use the variable to
convert data to desired code pages.

4. How do apps that use ODBC get this information ? Is it from the
db2cli.ini file ?

(AW) Through local DB2 client.

-- Artur Wronski

May 5 '06 #2
Thank you for your response.

May 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott | last post by:
I have an XML Document in a format like: <Variable name="Bob">ABCDEFG</Variable> <Variable name="Steve">QWERTYUI</Variable> <Variable name="John">POIUYTR</Variable> <Variable...
4
by: Frederik Sørensen | last post by:
I include a xslt stylesheet with variables for all the error messages in my system. <xsl:variable name="Banner_error_1"> errormessage 1 for banner </xsl:variable> <xsl:variable...
134
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
10
by: Blaxer | last post by:
There is probably a really easy way to do this, so please forgive me but I would like to set the value of a variable from a variable, an example would be... function Calculate_Something(ByVal...
23
by: Russ Chinoy | last post by:
Hi, This may be a totally newbie question, but I'm stumped. If I have a function such as: function DoSomething(strVarName) { ..... }
3
by: rls03 | last post by:
I have the following which creates a variable containing a relative path where <xsl:value-of select="."/returns a portion of the filename: <xsl:variable...
1
by: rajivblr | last post by:
I have my server on AS400. I connect to it using DB2Connect. In the AS400 server I have three kinds of tables one for English, one for Chinese and one for Thai. I need to use the...
1
pbmods
by: pbmods | last post by:
VARIABLE SCOPE IN JAVASCRIPT LEVEL: BEGINNER/INTERMEDIATE (INTERMEDIATE STUFF IN ) PREREQS: VARIABLES First off, what the heck is 'scope' (the kind that doesn't help kill the germs that cause...
112
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.