%let value = %qsysfunc(getvar&vartype1(&dsid,&varnum));
%let display = %qsysfunc(getvar&vartype2(&dsid,&varlabel));
%if %bquote(&value)=%bquote(&selected)
%then %let thisSelected = selected;
%else %let thisSelected =;
Get the values of the value and label variables.
Return