Regarding conditional EMAILs, there is no pre-coded "macro" to perform the process, however this topic has been discussed in the forum - suggest a search of the forums.
Also, the SAS support
http://support.sas.com/ website has SAS-hosted and supplemental technical / conference reference material on this topic/post.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search argument, this topic/post:
conditional email site:sas.com