Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using syntax to apply variable labels used in another file

Tags:

syntax

spss

Is there a way to generate the syntax used to label the variable and value of an spss file?

I have an SPSS file which contains about 200 variables. I created a copy of the file in CSV format. I made several changes of the data so I would like to create a new spss file. I would like to copy the variable and value labels of that file to my new file.

like image 640
dixi Avatar asked Dec 06 '25 10:12

dixi


1 Answers

I came across the same question. I'm adding a working snippet based on the comment by Andy W.

Apply Dictionary from *
/Source Variables = varWithLabelAndValues 
/Target Variables = varNeedingLabelAndValues
/Varinfo VARLABEL VALLABELs=replace .
like image 189
MatAff Avatar answered Dec 08 '25 22:12

MatAff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!