In reply to FerreP.

The comments of a blog are not suitable for having an extended technical discussion like this. You can post your problem to the SAS Support Communities. Since you don't want to use SAS/IML, post to the Community for Base SAS Programming.