I have a dataset and I would like to select variables based on their value label. I have used labelbook to find the variables:
Code:
. labelbook response

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
value label response
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      values                                    labels
       range:  [0,6]                     string length:  [5,17]
           N:  6                 unique at full length:  yes
        gaps:  yes                 unique at length 12:  yes
  missing .*:  0                           null string:  no
                               leading/trailing blanks:  no
                                    numeric -> numeric:  no
  definition
           0   Strongly disagree
           1   Disagree
           2   Neutral
           3   Agree
           4   Strongly agree
           6   Not relevant

   variables:  q2a q2b q2c q2f q3a q3c q3d q3e q3f q3g q3h q4a q4b q4c q4d q4e q4f q4g q4h q4i q5a q5b q5c q5d q5e q5f q5g q5h q5i q5k
but I am unable to access the variable list as it does not seem to be returned in a macro.

I have also had a look at labutil2 (from SCC) but there appears to be nothing that would help me in there.

I would be grateful for any assistance.

Thank you,
Janet