Variable labels in SPSS Macro
问题 I'm new to the SPSS macro syntax and had a hard time trying to label variables based on a simple loop counter. Here's what I tried to do: define !make_indicatorvars() !do !i = 1 !to 10. !let !indicvar = !concat('indexvar_value_', !i, '_ind') compute !indicvar = 0. if(indexvar = !i) !indicvar = 1. variable labels !indicvar 'Indexvar has value ' + !quote(!i). value labels !indicvar 0 "No" 1 "Yes". !doend !enddefine. However, when I run this, I get the following warnings: Warning # 207 on line .