Hey SAS-C!
Just FYI.
Bart
Available as usual at: https://github.com/yabwon/SAS_PACKAGES
Sometimes a package offers so many features that the number may be "overwhelming".
In such case only some of them may be selected for loading. Such process
is called a "cherry picking". The feature is provided by the %loadPackage()
macro
which uses a cherryPick=
parameter (see description below).
For example, execution of the following code:
%loadPackage(BasePlus, cherryPick=rainCloudPlot getVars)
results with loading only the rainCloudPlot
and the getVars
elements.
If several object types (e.g., a macro and a format) share the same name
all will be loaded.
What is the trade-off?
SYSloadedPackages
macrovariable is not updated with the package name.ReqPackages
list, are not loaded automatically, so they have to be loaded manually.%unloadPackage()
macro executed on such partially loaded package may sometimes issue some irrelevant warnings.%loadPackage()
macro:cherryPick=
parameter added to the macro.*
) means: "load all elements of the package".%generatePackage()
macro:%ICEloadPackage()
macro does not support cherry picking."An expert is a person who has made all the mistakes that can be made in a very narrow field" - Niels Bohr
So the SAS Packages Framework, version 20221125, is ready.
(https://github.com/yabwon/SAS_PACKAGES/releases/tag/20221125)
%generatePackage()
macro:It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.