Just to add to what the others already found: you do not need upcase() on libname and memname. These columns are always uppercase in the dictionary tables. But you should use upcase on name
and index(upcase(name),upcase("&suffix")) ge 1
as column names in SAS can be partially or completely lowercase.
... View more