It seems to me that you want to maintain a table of the distinct values of the variable that the user is supposed to choose from. It seems obvious to assume that you are allowing the user to pick a subset, which means that they are choosing a value of a classification variable also known as a foreign key. The values of a classification variable are unlikely to change so the dynamic solutions presented 1. sql select distinct 2. proc freq are unnecessary if the set of choices is static. summary: 1. get the list of values, once, save it 2. develop a solution which either 2.1 presents user with limited choice 2.2 parses user choice against data set list of values. Ron Fehd design maven
... View more