Minimalism SAS stored processes can do a lot. While I haven’t taken on the life of a true minimalist, recently I have come to see the benefits of limiting my stored process source code to just one statement. And the best part of this practice is, I can still do everything I want. When you create a stored process, SAS writes the source code somewhere (see Tricia’s post on where the code is stored). Typically you enter the source code in the stored process wizard. I am now in the habit of typing just one %INCLUDE statement in the source code, and I end up with a stored process window that looks like below. I use the /source2 option to make sure the included code is written to the log. Minimalist Stored Process The full stored process source code ends up as below, because SAS adds a bit of wrapper code: Minimalist Stored Process: Source Code The main code is DoSomething.sas. It has the usual DATA steps, PROC steps, macro calls, maybe even %INCLUDE statements to call other other sub-modules. Minimalist Stored Process: Main Code So what are the benefits? You can store the main SAS code (DoSomething.sas) wherever you want. I’ve been writing SAS code for MUCH […]
Read more →