Hi Rick
I am using similar concept to one on you first code to create two variables with select - when statement but I am receiving an error which I am unable to decipher. Here is the log page
166 /* Employment Status derived from variable EMPLOY1*/
167 length emp1l emp1l1 $50;
168 select (EMPLOY1);
169 when (1, 2) emp1l = 1; emp1l1 = "1. Employed";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
170 when (3, 4, 8) emp1l = 2; emp1l1 = "2. Unemployed";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
171 when (5) emp1l = 3; emp1l1 = "3. Homemaker";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
172 when (6) emp1l = 4; emp1l1 = "4. Student";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
173 when (7) emp1l = 5; emp1l1 = "5. Retired";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
174 otherwise emp1l = .;
175 end;

185 /* Race/Ethnicity derived from variable _RacePRV (Updated 2022 to _RacePR1*/
186 length _RacePRV1 _RacePRV2 $50;
187 select (_RacePRV);
188 when (1) _RacePRV1 = 1; _RacePRV2 = "1. White, NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
189 when (8) _RacePRV1 = 2; _RacePRV2 = "2. Hispanic";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
190 when (2) _RacePRV1 = 3; _RacePRV2 = "3. Black, NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
191 when (4) _RacePRV1 = 4; _RacePRV2 = "4. Asian, NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
192 when (7) _RacePRV1 = 5; _RacePRV2 = "5. Multi NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
193 when (3) _RacePRV1 = 6; _RacePRV2 = "6. AIAN NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
194 when (5) _RacePRV1 = 7; _RacePRV2 = "7. NHOPI";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
195 when (6) _RacePRV1 = 8; _RacePRV2 = "8. Other Race, NH";
ERROR: Expecting "WHEN", "OTHERWISE", or "END".
196 end;
197