In reply to Guz.

I do not have pre-written code for that, but you can ask questions about SAS programming at the SAS Support Communities.