cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Luq2
Level I

Changing value label in the entire data set

Hi,

 

i have the following problem at hand:

 

My variables have value labels in English and I need to replace them with a language overlay of another language. I have English and other languages in a structured format. 

is there any way to export the value labels and import the new ones? With variable names, I just copy paste, which works fine.

 

With value labels I haven't found a solution yet.

 

Thanks

Sebastian

1 REPLY 1
txnelson
Super User

Re: Changing value label in the entire data set

Here is the syntax required to change the value labels for a column

names default to here(1);
dt=open("$SAMPLE_DATA/Big Class.jmp");

// English
EnglishList = {"F" = "Female", "M" = "Male"};
dt:sex<<set property(value labels( EnglishList ) );
/*
// German
GermanList = {"F" = "Weiblich", "M" = "Männlich"};
dt:sex<<set property(value labels( GermanList ) );
*/

 

Jim