SAS Packages Framework, version 20260411

SAS Packages Framework, version `20260411`

New parameters added to the %installPackage() macro:
- backup

A backup copy of already installed package can be created before installing new one.
This commit is contained in:
Bart Jablonski
2026-04-10 19:22:47 +02:00
parent 29d1335e8a
commit d2ef89e2b7
24 changed files with 262 additions and 133 deletions

View File

@@ -1,7 +1,7 @@
---
# SAS Packages Framework, version `20260409`
# SAS Packages Framework, version `20260411`
---
@@ -34,7 +34,7 @@ A **SAS package** is an automatically generated, single, stand alone *zip* file
The *purpose of a package* is to be a simple, and easy to access, code sharing medium, which will allow: on the one hand, to separate the code complex dependencies created by the developer from the user experience with the final product and, on the other hand, reduce developer's and user's unnecessary frustration related to a remote deployment process.
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20260409`**.
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20260411`**.
**To get started with SAS Packages** try this [**`Introduction to SAS Packages`**](https://youtube.com/playlist?list=PLeMzGEImIT5eV13IGXQIgWmTFCJt_cLZG&si=ElQm0_ifq76mvUbq "Introduction to SAS Packages video series") video series or [**`Getting Started with SAS Packages`**](https://github.com/yabwon/SAS_PACKAGES/blob/main/SPF/Documentation/Getting_Started_with_SAS_Packages.pdf "Getting Started with SAS Packages") presentation (see the `./SPF/Documentation` directory).
@@ -57,7 +57,7 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
## This is short help information for the `installPackage` macro <a name="installpackage"></a>
--------------------------------------------------------------------------------------------
Macro to install SAS packages, version `20260409`
Macro to install SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -105,8 +105,15 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
When there are multiple packages to install version variable
is scan sequentially.
- `replace=` With default value of `1` it causes existing package file
to be replaced by new downloaded file.
- `replace=` When set to `1` and a package file exists, it forces the package
file replacement by the new downloaded file.
It is a binary indicator ('0' or '1'). Default value is `1`.
- `backup=` When set to `1` and a package file exists, it creates a backup copy
of the package file. The backup copy is created with a suffix of the
following format: `_BCKP_yyyymmddJJMMSS`.
If `replace=0` then `backup` is set to `0`.
It is a binary indicator ('0' or '1'). Default value is `0`.
- `URLuser=` A user name for the password protected URLs, no quotes needed.
@@ -203,7 +210,7 @@ filename packages "C:/SAS_PACKAGES";
## This is short help information for the `helpPackage` macro <a name="helppackage"></a>
-------------------------------------------------------------------------------
Macro to get help about SAS packages, version `20260409`
Macro to get help about SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -281,7 +288,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `loadPackage` macro <a name="loadpackage"></a>
-------------------------------------------------------------------------------
Macro to *load* SAS packages, version `20260409`
Macro to *load* SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -439,7 +446,7 @@ If created, those macros are automatically deleted when the `%unloadPackage()` m
## This is short help information for the `loadPackageS` macro <a name="loadpackages"></a>
-------------------------------------------------------------------------------
Macro wrapper for the loadPackage macro, version `20260409`
Macro wrapper for the loadPackage macro, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -490,7 +497,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `unloadPackage` macro <a name="unloadpackage"></a>
-------------------------------------------------------------------------------
Macro to unload SAS packages, version `20260409`
Macro to unload SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -557,7 +564,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `listPackages` macro <a name="listpackages"></a>
-----------------------------------------------------------------------------------------
Macro to list available SAS packages, version `20260409`
Macro to list available SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -606,7 +613,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `verifyPackage` macro <a name="verifypackage"></a>
-------------------------------------------------------------------------------
Macro to verify SAS package with it hash digest, version `20260409`
Macro to verify SAS package with it hash digest, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -662,7 +669,7 @@ filename packages "C:/SAS_PACKAGES"; %* set-up a directory for packages;
## This is short help information for the `previewPackage` macro <a name="previewpackage"></a>
-------------------------------------------------------------------------------
Macro to get preview of a SAS packages, version `20260409`
Macro to get preview of a SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -731,7 +738,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `generatePackage` macro <a name="generatepackage"></a>
-------------------------------------------------------------------------------
Macro to generate SAS packages, version `20260409`
Macro to generate SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -964,7 +971,7 @@ All files have to have `.sas` extension. Other files are ignored.
## This is short help information for the `extendPackagesFileref` macro <a name="extendpackagesfileref"></a>
-----------------------------------------------------------------------------------------
Macro to list directories pointed by 'packages' fileref, version `20260409`
Macro to list directories pointed by 'packages' fileref, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1006,7 +1013,7 @@ filename packages ("D:/NEW_DIR" %extendPackagesFileref()); %* add new directory;
## This is short help information for the `loadPackageAddCnt` macro <a name="loadpackageaddcnt"></a>
-------------------------------------------------------------------------------
Macro to load *additional content* for a SAS package, version `20260409`
Macro to load *additional content* for a SAS package, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1100,7 +1107,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
-------------------------------------------------------------------------------
Utility macro to *split* single file with SAS package code into multiple
files with separate snippets, version `20260409`
files with separate snippets, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1181,7 +1188,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `relocatePackage` macro <a name="relocatepackage"></a>
-------------------------------------------------------------------------------
Macro to *locally copy or move* (relocate) SAS packages, version `20260409`
Macro to *locally copy or move* (relocate) SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1293,7 +1300,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `isPackagesFilerefOK` macro <a name="ispackagesfilerefok"></a>
-----------------------------------------------------------------------------------------
Macro to check if the `packages` fileref is "correct", version `20260409`
Macro to check if the `packages` fileref is "correct", version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1344,7 +1351,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `SasPackagesFrameworkNotes` macro <a name="saspackagesframeworknotes"></a>
-------------------------------------------------------------------------------
Macro prints help notes for SAS Packages Framework macros, version `20260409`
Macro prints help notes for SAS Packages Framework macros, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1394,7 +1401,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `bundlePackages` macro <a name="bundlepackages"></a>
-------------------------------------------------------------------------------
Macro to *create bundles* of SAS packages, version `20260409`
Macro to *create bundles* of SAS packages, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1463,7 +1470,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `unbundlePackages` macro <a name="unbundlepackages"></a>
-------------------------------------------------------------------------------
Macro to *extract* SAS packages from a bundle, version `20260409`
Macro to *extract* SAS packages from a bundle, version `20260411`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating