Hi, this might sound stupid, but i have been looking for the answer for last few hours, but I still can't figure this out. The following code shows how I define my 'agegroup' variable: if i in (1, 5) then agegroup = '<30';
else if i in (2, 6) then agegroup = '31-45';
else if i in (3, 7) then agegroup = '46-60';
else agegroup = '60+'; But my sas output eliminates the number after the dash: I thought this might be a problem about variable type, but I am not sure anymore. I also tried to replace the single quote with double quote, but it isn't working.
... View more