SAS Packages Framework, version 20241014

#SAS Packages Framework, version `20241014`

## Changes

---

The [%generatePackage()]{https://github.com/yabwon/SAS_PACKAGES/blob/main/SPF/SPFinit.md#generatepackage} macro accepts two new code types:
- `DS2PCK` for Proc DS2 packages, and
- `DS2THR` for Proc DS2 threads.

Those two new types allow to add `PROC DS2` *threads* and *packages* to a SAS package.

---

The [%loadPackage()]{https://github.com/yabwon/SAS_PACKAGES/blob/main/SPF/SPFinit.md#loadpackage} macro has new parameter:
- `DS2force` - when set to `1` an existing data set named the same as thread or package is overwritten by DS2 file.

While loading a package that contains `PRCO DS2` code, by default, if there already exist a SAS data set with the same name (which is not a DS2 thread or package file) a warning is issued in the log and the thread/package data set is not generated. To force overwrite, set the `DS2force=` parameter of the `%loadPackage()` macro to 1.

---

Minor updates and fixes:
- Proc `sql` "drop table" replaced with `fedsqsl`'s for data sets deletion.
- Proc `iml`, `fcmp`, and `proto` code blocks end with `quit;` statement.

---

[Documentation]{https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation} and [Hands-on-Workshops materials]{https://github.com/yabwon/HoW-SASPackages} updated.

---
This commit is contained in:
Bart Jablonski
2024-10-14 21:38:08 +02:00
parent 0a01f39662
commit c667bc6b25
15 changed files with 396 additions and 114 deletions

View File

@@ -22,7 +22,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 **`20240927`**.
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20241014`**.
**To get started with SAS Packages** try this [**`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).
@@ -40,7 +40,7 @@ After assigning the directory do not change them when using the SPF since it may
## This is short help information for the `installPackage` macro <a name="installpackage"></a>
--------------------------------------------------------------------------------------------
Macro to install SAS packages, version `20240927`
Macro to install SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -154,7 +154,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 `20240927`
Macro to get help about SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -230,7 +230,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 `20240927`
Macro to *load* SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -290,6 +290,10 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
should be suppressed, default value is `0`,
when set to `1` `exec` files are *not* loaded
- `DS2force=` *Optional.* Indicates if loading of `PROC DS2` packages
or threads should overwrite existing SAS data sets.
Default value of `0` means "do not overwrite".
-------------------------------------------------------------------------------
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
@@ -382,7 +386,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 `20240927`
Macro wrapper for the loadPackage macro, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -431,7 +435,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 `20240927`
Macro to unload SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -496,7 +500,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 `20240927`
Macro to list available SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -537,7 +541,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 `20240927`
Macro to verify SAS package with it hash digest, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -591,7 +595,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 `20240927`
Macro to get preview of a SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -658,7 +662,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 `20240927`
Macro to generate SAS packages, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -873,7 +877,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 `20240927`
Macro to list directories pointed by 'packages' fileref, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -913,7 +917,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 `20240927`
Macro to load *additional content* for a SAS package, version `20241014`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating