Active development has moved to PharmaForest(https://github.com/PharmaForest/maxims4sas)
Please visit the new repository for the latest updates.
This package displays maxims that have deeply impressed me and that I wish to pass on to future generations.
This macro presents 50+ practical and philosophical principles aimed at
improving SAS programming habits. It can be used in training materials,
documentation, or as motivational content.
Call to the macro displays a collection of
"Maxims of Maximally Efficient SAS Programmers"
using PROC ODSTEXT with bold styling for emphasis.
Originally compiled by Kurt Bremser (2019)
Maxims of Maximally Efficient SAS Programmers
Ported by: Morioka Yutaka
Major updates and improvements by: Bartosz Jablonski
maxims- OPTIONAL, list of numbers of maxims to be printed. When empty all are printed. See examples.
Example 1. Print all maxims.
%sas_maxims()
Example 2. Print maxims 1 to 6 and maxims 42 and 52.
%sas_maxims(1:6, 42, 52)
# version history
0.2.0(07August2025): Possible to select Maxims. The visual beauty of the displayed text has also been greatly improved. Thank you, Bart.
0.1.0(06August2025): Initial version
The package is built on top of SAS Packages framework(SPF) developed by Bartosz Jablonski.
For more information about SAS Packages framework, see SAS_PACKAGES.
You can also find more SAS Packages(SASPACs) in SASPAC.
Firstly, create directory for your packages and assign a fileref to it.
filename packages "\path\to\your\packages";Secondly, enable the SAS Packages Framework.
(If you don't have SAS Packages Framework installed, follow the instruction in SPF documentation to install SAS Packages Framework.)
%include packages(SPFinit.sas)Install SAS package you want to use using %installPackage() in SPFinit.sas.
%installPackage(packagename, sourcePath=\github\path\for\packagename)(e.g. %installPackage(ABC, sourcePath=https://github.com/XXXXX/ABC/raw/main/))
Load SAS package you want to use using %loadPackage() in SPFinit.sas.
%loadPackage(packagename)