Hi everyone,

I have a big dataset which i have for hundreds variables an unique label value.
Here is an example of my export data:
Code:
label define allvalue 1 "t1" 2 "t2" ... 10000 "t10000"
label value var1 allvalue
label value var2 allvalue
...
label value var300 allvalue
I want each variables to have their own label using "allvalue" label but just keeping their modalities.

For example, i want:
Code:
label define var1 1 "t1" 2 "t2"
label value var1 var1
label define var2 3 "t3" 200 "t200" 250 "t250"
label value var2 var2
...
I cant do that manually because i have hundreds variables and thousands different
values, i don't know if it possible to automate this in a function (i have not enouth knowledge to do that myself).

Help would be quite welcome .