In reply to joseph.

Welcome to SAS! You can ask programming questions at the SAS Support Communities. There are many helpful people there. Post data and sample code when possible.