Hi Peter. Thanks for your comments. I learned SAS before SQL even existed and usually like DATA step solutions. I like my solution because the benzene values are stored in memory and the program is very efficient. For me, it is easier to understand. My SQL skills are pretty weak.