I've created a macro which returns a single value. how do I implement it within a datastep so as to create a new variable within that datastep. i.e.
So basically I want my 'AppendParent' dataset to contain both the Child and the Parent with the Parent value being returned by the macro 'FindUltimateParent'
Hope that makes sense!
Thanks
Nick
where would we be without rhetorical questions...
Code:
data AppendParent;
set MyInputs;
format UltimateParent 11.;
UltimateParent = FindUltimateParent(ChildEntity);
run;
So basically I want my 'AppendParent' dataset to contain both the Child and the Parent with the Parent value being returned by the macro 'FindUltimateParent'
Hope that makes sense!
Thanks
Nick
where would we be without rhetorical questions...