Hello, I would like to set the value labels of coded variables in a dataset based on the contents of another variable (code definitions from an accompanying dictionary file). The other (string) variable has the codes and corresponding definitions stored in a single line, all combined, as in the following example:
There are hundreds of these coded variables with corresponding code/definitions in dictionary file (with varying numbers of classes and nature of definitions). Thank you for any help.
Code:
1, Yes | 2, No | 3, Unknown
Comment