Fantastic! Just when I though that I have to switch to python to do these things you show me that it can all be done in good old SAS. Thank you so much!