SAS Tips and Techniques

by Chris Long, Director, Oceanview Consultancy Ltd

This page gives some tips, tricks and style hints for programming in SAS, based on my 16 years of experience as a SAS programmer in the pharmaceutical industry. I hope you find them useful.

Left-aligning PROC REPORT output

Quoting macro variables - keep it simple

Precautions when using RETAIN

Rounding numbers dynamically

Recording the source of observations

Bad style