Thanx Glenn,

I checked your UFDs, but cannot figure out which one, or how to use them to get the result I want, as I described earlier.

Let’s say I have same scenario as above but the list is a text file (*.txt) and a delimiter is used to separate each values, such as “;”.

 Code:
userP;UnitBX;London;ManD
userX;UnitA;Paris;ManA
user54;Unit34;London;ManF
user23;Unit34;London;ManF
user01;UnitRR;Paris;ManC
user11;UnitBX;Madrid;ManA
user7;UnitZ;Madrid;ManD
user62;UnitRR;London;ManD
userTX;UnitA;Paris;ManD
userLA;UnitFM;Madrid;ManA
user05;UnitRV;London;ManC
user12;UnitZ;Paris;ManC


Now how can I read that text file, find/collect all users belonging to each of the managers, and then for each “manager” generate new text file containing all users that belong to that manager.
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"