I often find myself creating slightly different variables from existing variables. It would be useful to have a facility to enable inheritance of attributes.
For example, I might have a variable named XYZ where missing has been coded as -9, and I need to create a new variable (XYZm) where I am going to convert -9 to . (SAS missing). I'd like to be able to type something like:
XYZm = inherit(XYZ);
if XYZ = -9 then XYZm = . ; ...etc.
This would be particularly useful where the attributes have been set in another program, and copy/paste of code is not straightforward.