set locale spss21

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

set locale spss21

Anthony Bressy
Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: set locale spss21

Jon K Peck
Open a syntax window and run

set locale=russian.
show locale.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Anthony Bressy <[hidden email]>
To:        [hidden email],
Date:        03/15/2013 08:21 AM
Subject:        [SPSSX-L] set locale spss21
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: set locale spss21

David Marso
Administrator
In reply to this post by Anthony Bressy
From the FM-v21:pg:1915-1916
 

SET

--LOCALE Subcommand
The LOCALE subcommand allows you to change the locale used for data analysis. By default,
the locale is set to the computer’s system locale if possible. With the LOCALE subcommand, you
can override the default behavior and process data files in other locales without changing your
computer’s system or user locale.

 The default locale is the current operating system locale.
 The LOCALE subcommand persists. The next time that IBM® SPSS® Statistics is started on
your computer, SPSS Statistics will run in that locale.
 If the locale ID does not match the system locale, not all output will be rendered correctly.
 In code page mode, locale changes that also change the encoding can only be made when
there are no open datasets. For information on code page mode and Unicode mode, see
UNICODE Subcommand.
 You can use SHOW LOCALE to view the current SPSS Statistics locale.
Example
SET LOCALE='Japanese'.
1916
SET
 When you are connecting to a server, the relevant locale ID is defined in the loclmap.xml file,
which is located on the server computer. Check with your server administrator for available
locale IDs.
 Locale ID values of the general form Language_Country.codepage#, which were
valid in previous releases, are not valid in release 16.0 or later. In most instances, the
“Language” portion of the old locale specification should be a valid locale ID in release
16.0 or later. For example, instead of ‘Japanese_Japan.932’, you could specify simply
‘Japanese’. For a complete list of names and aliases that can be used to specify locale, go to
http://www.iana.org/assignments/character-sets

Two-letter language abbreviations adhere to the ISO 639-1 standard:
http://www.loc.gov/standards/iso639-2/php/code_list.php
Two-letter country codes adhere to the ISO 3166 standard: http://en.wikipedia.org/wiki/ISO_3166-1
Example
SET LOCALE='ja_JP.Shift_JIS'
 “ja” is the two-letter language code for Japanese.
 “JP” is the two-letter country code for Japan.
 “Shift_JIS” is the name of the character set.

Anthony Bressy wrote
Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: set locale spss21

Albert-Jan Roskam
In reply to this post by Jon K Peck
Hmmm, I had already concluded that all 'easy' locale names could no longer be used in v20, but apparently dutch is an exception:
 
* version 20.
set locale="english".
set locale="dutch".
Warning # 849 in column 12. Text: dutch
The LOCALE subcommand of the SET command has an invalid parameter. It could
not be mapped to a valid backend locale.
set locale="nl_NL".
 
* version 14.
set locale="english".
set locale="dutch".
set locale="nl_NL".
>Warning # 849 in column 12. Text: nl_NL
>The LOCALE subcommand of the SET command has an invalid parameter. It
>could not be mapped to a valid backend locale.
 
Regards,
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
From: Jon K Peck <[hidden email]>
To: [hidden email]
Sent: Friday, March 15, 2013 3:24 PM
Subject: Re: [SPSSX-L] set locale spss21

Open a syntax window and run

set locale=russian.
show locale.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Anthony Bressy <[hidden email]>
To:        [hidden email],
Date:        03/15/2013 08:21 AM
Subject:        [SPSSX-L] set locale spss21
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD




Reply | Threaded
Open this post in threaded view
|

Re: set locale spss21

Jon K Peck
The list of locale names is user extensible.  If you add this to the loclmap.xml file in the Statistics installation directory, you've got Dutch.

        <client-locale name="Dutch">
                <server-locale name="nl_NL.cp1252"/>
        </client-locale>



set locale=dutch.
show locale.

System Settings                
Keyword        Description        Setting
LOCALE        country and character set        nl_NL.windows-1252 (dutch)





Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Albert-Jan Roskam <[hidden email]>
To:        [hidden email],
Date:        03/15/2013 11:19 AM
Subject:        Re: [SPSSX-L] set locale spss21
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hmmm, I had already concluded that all 'easy' locale names could no longer be used in v20, but apparently dutch is an exception:
 
* version 20.
set locale="english".
set locale="dutch".
Warning # 849 in column 12. Text: dutch
The LOCALE subcommand of the SET command has an invalid parameter. It could
not be mapped to a valid backend locale.
set locale="nl_NL".
 
* version 14.
set locale="english".
set locale="dutch".
set locale="nl_NL".
>Warning # 849 in column 12. Text: nl_NL
>The LOCALE subcommand of the SET command has an invalid parameter. It
>could not be mapped to a valid backend locale.
 
Regards,
Albert-Jan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: Jon K Peck <[hidden email]>
To:
[hidden email]
Sent:
Friday, March 15, 2013 3:24 PM
Subject:
Re: [SPSSX-L] set locale spss21


Open a syntax window and run

set locale=russian.

show locale.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621





From:        
Anthony Bressy <[hidden email]>
To:        
[hidden email],
Date:        
03/15/2013 08:21 AM
Subject:        
[SPSSX-L] set locale spss21
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>



Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD




Reply | Threaded
Open this post in threaded view
|

Re: set locale spss21

Jon K Peck
The whole locale naming standard ISO639 is a big mess.  There are many equivalent names and inconsistencies and near aliases.  Within a single platform like Windows, the naming doesn't matter much, but with Statistics Server, the backend could be running on a Unix box with different naming rules, which is why we have the loclmap.xml file to try to mediate between them.  The names even vary from one Unix/Linux to another.

So by default, Statistics runs in the locale of your OS, but if you specify a different one, Statistics will use it if possible.  Locales have many properties, but Statistics mostly just uses the decimal and digit group symbols, the collation sequence, and the encoding.  We set the user interface and output language separately, but in code page mode you can makes some choices you would regret.  If you try Japanese language with a western European character set (1250 or ISO8859-1), the results not be very useful.  Use Unicode!


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Albert-Jan Roskam <[hidden email]>
To:        Jon K Peck/Chicago/IBM@IBMUS, "[hidden email]" <[hidden email]>,
Date:        03/15/2013 02:38 PM
Subject:        Re: [SPSSX-L] set locale spss21




Thank you! I noticed it reports the Windows-style "windows-1252" and not the IANA name 'cp1252'. So even though SPSS has its own locale, this locale is still determined by the locale of the host system?

The amount of aliases for codepages is pretty amazing (see encodings.aliases.aliases).
But it's reassuring to know that, even on Windows, one can define a custom Klingon locale and use an alias for it in spss (set locale = "klingon"):
http://blogs.msdn.com/b/shawnste/archive/2006/02/17/534533.aspx

Regards,
Albert-Jan


 
Regards,
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: Jon K Peck <[hidden email]>
To:
[hidden email]
Sent:
Friday, March 15, 2013 6:31 PM
Subject:
Re: [SPSSX-L] set locale spss21


The list of locale names is user extensible.  If you add this to the loclmap.xml file in the Statistics installation directory, you've got Dutch.

       
<client-locale name="Dutch">
               
<server-locale name="nl_NL.cp1252"/>
       
</client-locale>



set locale=dutch.

show locale.


System Settings                

Keyword        Description        Setting

LOCALE        country and character set        nl_NL.windows-1252 (dutch)






Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621





From:        
Albert-Jan Roskam <[hidden email]>
To:        
[hidden email],
Date:        
03/15/2013 11:19 AM
Subject:        
Re: [SPSSX-L] set locale spss21
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>




Hmmm, I had already concluded that all 'easy' locale names could no longer be used in v20, but apparently dutch is an exception:

 
* version 20.

set locale="english".

set locale="dutch".

Warning # 849 in column 12. Text: dutch

The LOCALE subcommand of the SET command has an invalid parameter. It could

not be mapped to a valid backend locale.

set locale="nl_NL".

 
* version 14.
set locale="english".
set locale="dutch".
set locale="nl_NL".
>Warning # 849 in column 12. Text: nl_NL
>The LOCALE subcommand of the SET command has an invalid parameter. It
>could not be mapped to a valid backend locale.
 
Regards,
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From:
Jon K Peck <[hidden email]>
To:
[hidden email]
Sent:
Friday, March 15, 2013 3:24 PM
Subject:
Re: [SPSSX-L] set locale spss21


Open a syntax window and run


set locale=russian.

show locale.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621





From:        
Anthony Bressy <[hidden email]>
To:        
[hidden email],
Date:        
03/15/2013 08:21 AM
Subject:        
[SPSSX-L] set locale spss21
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>



Hello,

How can I change the "SET LOCALE" English to Russian with spss 21 ?

Thanks in advance for your help.
Anthony

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD