BookmarkSubscribeRSS Feed
yabwon
Amethyst | Level 16

Hey SAS-C!

Just FYI.

Bart

SAS Packages Framework, version 20221121 is here!

Available as usual at: https://github.com/yabwon/SAS_PACKAGES


New feature of "Cherry picking" added to the SAS Packages Framework.

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?

  • Since the cherry picking selects only a part of the package the SYSloadedPackages macrovariable is not updated with the package name.
  • Dependencies i.e., packages from the ReqPackages list, are not loaded automatically, so they have to be loaded manually.
  • The %unloadPackage() macro executed on such partially loaded package may sometimes issue some irrelevant warnings.

Changes in %loadPackage() macro:

  • New cherryPick= parameter added to the macro.
    As a value a space separated list of selected elements
    of the package to be loaded into the SAS session is expected.
    Default value of an asterisk (*) means: "load all elements of the package".
    Empty list is equivalent to default.
  • Documentation updated.

Changes in %generatePackage() macro:

  • Code adjustment for the cherry picking feature.
  • Minor additional code refactoring.
  • The %ICEloadPackage() macro does not support cherry picking.

The following packages were regenerated with the latest version of the framework:

  • BasePlus [1.17.2]
  • DFA [0.5.2]
  • dynMacroArray [0.2.2]
  • GSM [0.20.2]
  • macroArray [1.0.2]
  • SQLinDS [2.2.2]
_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



1 REPLY 1
yabwon
Amethyst | Level 16

"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)

 

Changes in %generatePackage() macro:


The following packages were regenerated with the latest version of the SAS Packages Framework:

  • BasePlus [1.17.3]
  • DFA [0.5.3]
  • dynMacroArray [0.2.3]
  • GSM [0.20.3]
  • macroArray [1.0.3]
  • SQLinDS [2.2.3]
_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 595 views
  • 2 likes
  • 1 in conversation