Reputation: 710
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.
Upvotes: 3
Views: 1106
Reputation: 1331
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 .
Upvotes: 1