Tool to import/export value labels in SPSS
Posted on 2015-02-06
Is there a tool that will allow me to import/export the embedded value labels in SPSS?
For instance, if I have a variable in SPSS called Marital_Status, it might have a value table like this:
-1 - Unanswered
1 - Single
2 - Married
3 - Divorced
4 - Widowed
I'm looking for a tool that would export the SPSS data to Microsoft Access (or SQL Server) and not only create a table in Access that has the data from the SPSS file but also export these value labels.
We have SPSS files that have hundreds of fields, most of which have embedded value labels and we're getting more SPSS files all the time. We have no problem exporting the data to Access but we lose the value labels. And because there are so many different fields that have these (with more coming in each SPSS file we receive), manually creating the subtables in Access is tedious.
A partial solution is that we can export from SPSS and have SPSS replace the numeric values with their labels, but this has two drawbacks for us:
1. In order to ensure compatibility with our data partners, we need to know both the numeric value and its label. So we would have to do two exports (one with the numeric values and one with the substituted labels) and then code to match them.
2. There's no guarantee that every value for a variable is used in the database. So a double-export would lose the labels for any unused values. This poses a problem when we're exporting data for our data partners.
Is there a way to export these tables of value labels? Either through code in SPSS or through some third-party tool? I tried StatTransfer, but it doesn't have this feature and their tech support says that they don't have any plans to add it.
Thanks in advance.