Repository navigation
SAS Packages Framework, version 20251221
SAS Packages Framework, version 20251221
This release introduces three new utility macros expanding SPF. Macros were created as a result of collaboration with Stu Sztukowski (stu-code) after his pull request #120. Thanks Stu!
Changes:
Three new macros were added to the framework:
- The
%relocatePackage()macro that allows transport packages files on local computer betweenpackagesfileref 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 thepackagesfileref is "good", i.e., all directories in the fileref definition exist, are accessible (allow to be open), and are assigned with theDISKdevice. The%isPackagesFilerefOK()macro works as a macro-function, returns0or1. - 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(*)