Dear All, I am facing the problem here. I am using sas 9.2 and would like to build a dataset in the following way. I have a table called rules which has variable Name, and its lower and upper bound based classifications eg. age 1 20 Child age 20 40 Youth age 40 100 Oldies height..... etc... Now i want to run this on a base data, and create a separate group variable which will indicate whether they are children Youth or Oldies. I am stuck at this for quite sometime now trying to use macros to generate the if conditions, but end up getting a this statement is not valid or out of order as error. Thanks in advance for the help. CHeers Sudharshan
... View more