Thanks a lot, Rick, for this post and for the other ones. Your various posts provide so clear and very useful hints and tips! I systematically copy your SAS code in little SAS programs and I apply it firstly to the data your are using, and then to my own data, In order to get a better understanding, I then introduce slight variations around your core code to see what happens. I learn a lot. Big thanks again!