BookmarkSubscribeRSS Feed
yabwon
Amethyst | Level 16

Hey SAS-C

Just FYI,

Bart

 

SAS Packages Framework, version 20251221

Available as usually under: https://github.com/yabwon/SAS_PACKAGES 

This release introduces three new utility macros expanding SPF. Macros were created as a result of collaboration Stu Sztukowski (stu-code) after his pull request #120. Thanks @Stu_SAS !


Changes:

Three new macros were added to the framework:

  • The %relocatePackage() macro that allows transport packages files on local computer between packages fileref and selected location. The location can be: 1) a physical directory on a computer, 2) a folder in SAS Viya Files service, or 3) a zip SAS bundle (more about SAS bundles soon) .
  • The %isPackagesFilerefOK() macro that verifies if the packages fileref is "good", i.e., all directories in the fileref definition exist, are accessible (allow to be open), and are assigned with the DISK device. The %isPackagesFilerefOK() macro works as a macro-function, returns 0 or 1.
  • The %SasPackagesFrameworkNotes() macro prints SPF's help notes in the log in more convenient way.

Documentation updated.

Article refreshed.


Examples:

Example 1. Copy basePlus and SQLinDS packages from SAS Viya Files service folder to packages fileref:

filename packages ('~/myPrivatePackages');

%relocatePackage(basePlus SQLinDS,
  source=/Users/&sysuserid./My Folder/SASPACKAGES,
  sDevice=FILESRVC
)
 

Example 2. Check if packages fileref is OK:

filename packages ('~/myPrivatePackages' '/sas/public/packages');

%put %isPackagesFilerefOK(1); /* with 1 the macro is "sassy" */
 

Example 3. List all macros in SPF and print all help notes:

%SasPackagesFrameworkNotes()
%SasPackagesFrameworkNotes(*)
 

_______________
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



sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 0 replies
  • 27 views
  • 0 likes
  • 1 in conversation