In reply to Jared Prins.

You actually don't need the IF statement that I alluded to. If you use the data set savedAttrs, then the extended attribute values are split across two variables - one for char and one for num. In that instance, you would need to call symput appropriately.

But using the sashelp.vxattr view is far easier:

data _null_; set sashelp.vxattr;
call symput(xattr, xvalue);
run;
%put _USER_;