Techniques for writing robust SAS® macros
Author: Gregory, Martin1
Source: Pharmaceutical Programming, Volume 2, Number 1, August 2009 , pp. 5-13(9)
Publisher: Maney Publishing
Abstract:
In complex applications, it is important that individual components are robust and interact in a predictable manner. A robust program should be well documented and tested, should validate its inputs, handle failure in a controlled and elegant way, should appropriately notify the calling programmer or program of the outcome of execution and clean up after itself. This paper describes specific techniques for implementing these concepts when building applications using the SAS macro language. While a certain investment is involved in applying the techniques, they result in more reliable and easier to maintain systems with a lower support requirement.Keywords: MACRO; PROGRAMMING; SAS
Document Type: Research article
DOI: 10.1179/175709209X12495462196047
Affiliations: 1: Global Biostatistics, Merck Serono, Frankfurter Strasse 250, D-64293 Darmstadt, Germany

Click here for Page Help