SAS does offer the macro afterall: https://support.sas.com/kb/63/038.html