03-05-2014 02:10 AM
03-05-2014 03:56 AM
You need to explain the business logic behind the transformation you want.
Why are certain columns repeated in the yellow data?
Why are some cells set to null?
Is there any row level relationship between the apparent director-director, GM-GM and manager-manager entries, and if so, what is the logic?
03-05-2014 04:10 AM
Looks like a 2 stage exercise:
If there might be situations where an individual had more than one boss, the streams should be sorted (NODUPKEY)
03-05-2014 04:42 AM
On closer inspection I agree with Peter's analysis that the yellow consists of 4 separate streams, each of which is the unique relationship between adjacent levels of this (surely bogus!) hierarchy. However, to preserve the original order the data needs to be analysed using the notsorted option. Here is the code for the first 2 cols
data cols_IJ ;
set have ;
by notsorted Director ;
keep ExDirector Director ;
if first.director ;
Need further help from the community? Please ask a new question.