I can’t STP loving you
One of the most underestimated controls in Visual Analytics Report Designer is Stored Process Control. Probably, this is more of a psychological bias, some kind of deep fear in post-SAS-9.1.3 users souls: what is an STP for in a Visual Reporting Tool? Why should I run some kind of SAS code when the GUI is already doing everything I need? Should we really awake and unleash the ancient demons resting behind the execution of plain user written SAS code?
They say the Dark Side of the Force is evil, but they don’t tell you about freebies. Just think of your nastiest end user accessing a troublesome report. Wouldn’t Darth Vader use the Force to fill the user mailbox with porn spam right in that moment, misleading him and taking his attention away from the report? Just embed in your report an STP using proc http to call youPorn APIs and the job is done.
The light side of the Force benefits as well from STPs. Main uses comprehends tricky layouts, advanced functionalities, LASR server management, and filling browsers with furry chubby heart-shaped-eyed pets.
On one hand, by using STPs you can show in a frame any kind of output. It doesn’t just mean you can show a number you wouldn’t be able to show in a table. It means you can have the STP writing out your own HTML output, including images, advanced css, javascript interactions, you can even include external js libraries such as jquery. It means having a real web application inside your report, providing advanced functionalities, including external content, calling other STPs, handling advanced side effects.
On the other hand, you can have the STP managing the LASR sword. Err… I was meaning LASR server, of course. An STP natively has the capability to present the user with prompts. By asking the user which kind of data he is going to use, you can have LASR specific procedures such as proc imstat to dynamically load in-memory just the tailored portion of data that is needed, maybe setting constraints on the number of rows you are going to load, resulting in dramatic performance boosts when you deal with huge amounts of data being held on unfit architectures. By the end of the story, you have the elephant getting into the matchbox. One bit at a time. Jabba the Hut would approve.
“Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering. Suffering leads to STP.”
– Yoda
















