Leonid,

Thanks a 1,000,000 for another well-explained, clever macro that I can put in my SAS Toolbox!