In your case one solution >>> is to -destring- the string variables before the loop, but then the >>> loop will convert back, so that does not appeal. >>> >>> Another is to select numeric variables beforehand. -ds- will do this >>> >>> ds srhcareactivity1-srhcareactivity6 ,...