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(*)