Hello all, Hope you all well. I have two libraries: 'SuperHero' and 'Height' In library 'SuperHero', it has 1000 datasets with different names, for example, the 1000 datasets name are Bumblebee, Starscream, Batman, Wonderwoman, ...etc In library 'Height', it has only one dataset, having two variables, one is each dataset's name in 'SuperrHero', another variable is their height, such as Name Height Bumblebee 14.8 Starscream 22.5 Batman 1.86 Wonderwoman 1.72 ....etc What I would like to do is, add Height variable and value to each file in 'SuperHero' Logic is IF Name variable in 'Height' is the same with dataset's name in 'SuperHero', THEN add Name's corresponding Height to that dataset in 'SuperHero'. So that, in 'SuperHero', each obs of each dataset has a new variable called Height. For example, originally, open Bumblebee data in 'SuperHero', it is like this Age Weight 23 345 24 349 25 765 After what we do, open Bumblebee data in 'SuperHero', it will be like this Height Age Weight 14.8 23 345 14.8 24 349 14.8 25 765 Does this need macro? Anyway, what code should I use? Thank you and keep warm!
... View more