diff --git a/README.md b/README.md
index 295f58d..039d50a 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Don't forget to give the repository a **STAR** and become [stargazer](https://gi
### Current version:
-**The latest version** of the **SAS Packages Framework** is **`20250710`**.
+**The latest version** of the **SAS Packages Framework** is **`20250728`**.
---
diff --git a/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf b/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf
index 337df7c..5fde313 100644
Binary files a/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf and b/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf differ
diff --git a/SPF/Macros/extendpackagesfileref.sas b/SPF/Macros/extendpackagesfileref.sas
index d705579..b0f2f2f 100644
--- a/SPF/Macros/extendpackagesfileref.sas
+++ b/SPF/Macros/extendpackagesfileref.sas
@@ -6,7 +6,7 @@
when empty the "packages" value is used */
)/secure
/*** HELP END ***/
-des = 'Macro to list directories pointed by "packages" fileref, version 20250710. Run %extendPackagesFileref(HELP) for help info.'
+des = 'Macro to list directories pointed by "packages" fileref, version 20250728. Run %extendPackagesFileref(HELP) for help info.'
;
%if %QUPCASE(&packages.) = HELP %then
@@ -22,7 +22,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20250710
%put ### This is short help information for the `extendPackagesFileref` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to list directories pointed by 'packages' fileref, version `20250710` #;
+ %put # Macro to list directories pointed by 'packages' fileref, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -43,6 +43,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20250710
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ##############################################################################;
%put # #;
diff --git a/SPF/Macros/generatepackage.sas b/SPF/Macros/generatepackage.sas
index 78ac37e..ce64fa9 100644
--- a/SPF/Macros/generatepackage.sas
+++ b/SPF/Macros/generatepackage.sas
@@ -3,7 +3,7 @@
Macro to generate SAS packages.
- Version 20250710
+ Version 20250728
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -43,7 +43,7 @@
file name be created */
)/ secure minoperator
/*** HELP END ***/
-des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage() for help info.'
+des = 'Macro to generate SAS packages, version 20250728. Run %generatePackage() for help info.'
;
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
%do;
@@ -58,7 +58,7 @@ des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage()
%put ### This is short help information for the `generatePackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to generate SAS packages, version `20250710` #;
+ %put # Macro to generate SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -73,6 +73,7 @@ des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage()
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to read about the details of package generation process. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Parameters: #;
%put # #;
@@ -872,7 +873,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */
%end;
-footnote1 "SAS Packages Framework, version 20250710";
+footnote1 "SAS Packages Framework, version 20250728";
proc print
data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent)
@@ -1696,7 +1697,7 @@ data _null_;
%end;
put +(-1) '`.;''' /
' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' /
- ' !! '' %put with the SAS Packages Framework version 20250710.;''' /
+ ' !! '' %put with the SAS Packages Framework version 20250728.;''' /
' !! '' %put ****************************************************************************;''' /
' !! '' %GOTO theEndOfTheMacro;''' /
' !! '' %end;''' ;
@@ -1861,7 +1862,7 @@ data _null_;
%end;
put +(-1) '`.; '' !!' /
''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !!' /
- ''' %put with the SAS Packages Framework version 20250710.; '' !! ' /
+ ''' %put with the SAS Packages Framework version 20250728.; '' !! ' /
''' %put ****************************************************************************; '' !! ' /
''' %GOTO theEndOfTheMacro; '' !! ' /
''' %end; '' !! ' /
@@ -2668,7 +2669,7 @@ data _null_;
%end;
put 'put " " / @3 "--------------------------------------------------------------------" / " ";'
- / 'put @3 "*SAS package generated by SAS Package Framework, version `20250710`*";'
+ / 'put @3 "*SAS package generated by SAS Package Framework, version `20250728`*";'
/ 'put " " / @3 "--------------------------------------------------------------------";';
put 'run; ' /;
@@ -3706,7 +3707,7 @@ data &filesWithCodes.markdown;
%end;
put " " / "--------------------------------------------------------------------" / " "
- / "*SAS package generated by SAS Package Framework, version `20250710`*"
+ / "*SAS package generated by SAS Package Framework, version `20250728`*"
/ " " / "--------------------------------------------------------------------" / " ";
put "# The `&packageName.` package content";
diff --git a/SPF/Macros/helppackage.sas b/SPF/Macros/helppackage.sas
index 8510b76..44b1a1f 100644
--- a/SPF/Macros/helppackage.sas
+++ b/SPF/Macros/helppackage.sas
@@ -28,7 +28,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage() for help info.'
+des = 'Macro to get help about SAS package, version 20250728. Run %helpPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -43,7 +43,7 @@ des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage()
%put ### This is short help information for the `helpPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to get help about SAS packages, version `20250710` #;
+ %put # Macro to get help about SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -93,6 +93,7 @@ des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage()
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
diff --git a/SPF/Macros/installpackage.sas b/SPF/Macros/installpackage.sas
index 1659b7f..74c88d5 100644
--- a/SPF/Macros/installpackage.sas
+++ b/SPF/Macros/installpackage.sas
@@ -1,5 +1,5 @@
/*+installPackage+*/
-/* Macros to install SAS packages, version 20250710 */
+/* Macros to install SAS packages, version 20250728 */
/* A SAS package is a zip file containing a group of files
with SAS code (macros, functions, data steps generating
data, etc.) wrapped up together and %INCLUDEed by
@@ -25,7 +25,7 @@
/secure
minoperator
/*** HELP END ***/
-des = 'Macro to install SAS package, version 20250710. Run %%installPackage() for help info.'
+des = 'Macro to install SAS package, version 20250728. Run %%installPackage() for help info.'
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
%do;
@@ -40,7 +40,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put ### This is short help information for the `installPackage` macro #;
%put #--------------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to install SAS packages, version `20250710` #;
+ %put # Macro to install SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -73,16 +73,18 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/` #;
%put # #;
%put # - `mirror=` Indicates which web location for packages installation is used. #;
- %put # Value `0` indicates: #;
+ %put # Value `0` or `SASPAC` indicates: #;
%put # `https://github.com/SASPAC/` #;
%put # Value `1` indicates: #;
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #;
%put # Value `2` indicates: #;
%put # `https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES` #;
+ %put # Value `3` or `PharmaForest` indicates: #;
+ %put # `https://github.com/PharmaForest/` #;
%put # Default value is `0`. #;
%put # #;
%put # - `version=` Indicates which historical version of a package to install. #;
- %put # Historical version are available only if `mirror=0` is set. #;
+ %put # Historical version are currently available only if `mirror=0` is set. #;
%put # Default value is null which means "install the latest". #;
%put # When there are multiple packages to install version variable #;
%put # is scan sequentially. #;
@@ -118,6 +120,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example #################################################################################;
%put # #;
@@ -142,7 +145,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #;
%put # Enabling the SAS Package Framework #;
%put # from the local directory and installing & loading #;
- %put # the multiple packages from the Internet. #;
+ %put # multiple packages with versions from the Internet. #;
%put # #;
%put # Assume that the `SPFinit.sas` file #;
%put # is located in the "C:/SAS_PACKAGES/" folder. #;
@@ -202,11 +205,21 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
%let sourcePath = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/packages/;
+ %if %qupcase(%superq(mirror))=SASPAC %then %let mirror = 0;
+ %if %qupcase(%superq(mirror))=PHARMAFOREST %then %let mirror = 3;
+
+ %if NOT (%superq(mirror) IN (0 1 2 3)) %then
+ %do;
+ %put WARNING: Unknown mirror: %superq(mirror)!;
+ %put WARNING- Default will be used.;
+ %let mirror = 0;
+ %end;
+
%if 0 = %superq(mirror) %then
%do;
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas;
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
- %let sourcePath = https://github.com/SASPAC/; /*usercontent*/
+ %let sourcePath = https://github.com/SASPAC/; /*users content*/
%goto mirrorEnd;
%end;
@@ -225,6 +238,16 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let sourcePath = https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES/packages/;
%goto mirrorEnd;
%end;
+
+ %if 3 = %superq(mirror) %then
+ %do;
+ %let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas;
+ %let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
+ /* ingnore version support for pharmaForest for now */
+ %let sourcePath = https://github.com/PharmaForest/; /*users content*/
+ %goto mirrorEnd;
+ %end;
+
%mirrorEnd:
%put INFO: Source path is &sourcePath.;
%end;
@@ -273,7 +296,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let vers=;
%if %superq(versB) ne %then %let vers = &versB.;
%if %superq(versA) ne %then %let vers = &versA.;
- %if -1 = &mirror %then /* ignore version when direct path is provided */
+ %if %eval(-1 = &mirror) OR %eval(3 = &mirror) %then /* ignore version when direct path or PharmaForest is provided */
%do;
%let vers=;
%end;
@@ -320,7 +343,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end;
%else
%do;
- %if 0 = %superq(mirror) %then
+ %if %superq(mirror) IN (0 3) %then /* SASPAC or PharmaForest */
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
@@ -332,7 +355,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end;
%else
%do;
- %if %superq(mirror) > 0 %then
+ %if %superq(mirror) NE 0 %then
%put %str( )Mirror %superq(mirror) does not support versioning.;
%end;
diff --git a/SPF/Macros/listpackages.sas b/SPF/Macros/listpackages.sas
index 980be59..5c67684 100644
--- a/SPF/Macros/listpackages.sas
+++ b/SPF/Macros/listpackages.sas
@@ -3,7 +3,7 @@
Macro to list SAS packages in packages folder.
- Version 20250710
+ Version 20250728
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -23,7 +23,7 @@
%macro listPackages()
/secure PARMBUFF
-des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20250710.'
+des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20250728.'
;
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
%do;
@@ -38,7 +38,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
%put ### This is short help information for the `listPackages` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to list available SAS packages, version `20250710` #;
+ %put # Macro to list available SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -57,6 +57,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ##############################################################################;
%put # #;
diff --git a/SPF/Macros/loadpackage.sas b/SPF/Macros/loadpackage.sas
index 70a9511..fbb5e85 100644
--- a/SPF/Macros/loadpackage.sas
+++ b/SPF/Macros/loadpackage.sas
@@ -36,7 +36,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to load SAS package, version 20250710. Run %loadPackage() for help info.'
+des = 'Macro to load SAS package, version 20250728. Run %loadPackage() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -52,7 +52,7 @@ minoperator
%put ### This is short help information for the `loadPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to *load* SAS packages, version `20250710` #;
+ %put # Macro to *load* SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -120,6 +120,7 @@ minoperator
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
diff --git a/SPF/Macros/loadpackageaddcnt.sas b/SPF/Macros/loadpackageaddcnt.sas
index 98d6e50..4ef07d8 100644
--- a/SPF/Macros/loadpackageaddcnt.sas
+++ b/SPF/Macros/loadpackageaddcnt.sas
@@ -19,7 +19,7 @@
is provided in required version */
)/secure
/*** HELP END ***/
-des = 'Macro to load additional content for a SAS package, version 20250710. Run %loadPackageAddCnt() for help info.'
+des = 'Macro to load additional content for a SAS package, version 20250728. Run %loadPackageAddCnt() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -35,7 +35,7 @@ minoperator
%put ### This is short help information for the `loadPackageAddCnt` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to *load* additional content for a SAS package, version `20250710` #;
+ %put # Macro to *load* additional content for a SAS package, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -75,6 +75,7 @@ minoperator
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
diff --git a/SPF/Macros/loadpackages.sas b/SPF/Macros/loadpackages.sas
index 6c47752..b720d39 100644
--- a/SPF/Macros/loadpackages.sas
+++ b/SPF/Macros/loadpackages.sas
@@ -11,7 +11,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to load multiple SAS packages at one run, version 20250710. Run %loadPackages() for help info.'
+des = 'Macro to load multiple SAS packages at one run, version 20250728. Run %loadPackages() for help info.'
parmbuff
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
@@ -27,7 +27,7 @@ parmbuff
%put ### This is short help information for the `loadPackageS` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro wrapper for the loadPackage macro, version `20250710` #;
+ %put # Macro wrapper for the loadPackage macro, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -52,6 +52,7 @@ parmbuff
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
diff --git a/SPF/Macros/previewpackage.sas b/SPF/Macros/previewpackage.sas
index 3241be7..b2d4eb1 100644
--- a/SPF/Macros/previewpackage.sas
+++ b/SPF/Macros/previewpackage.sas
@@ -23,7 +23,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to preview content of a SAS package, version 20250710. Run %previewPackage() for help info.'
+des = 'Macro to preview content of a SAS package, version 20250728. Run %previewPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -38,7 +38,7 @@ des = 'Macro to preview content of a SAS package, version 20250710. Run %preview
%put ### This is short help information for the `previewPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to get preview of a SAS packages, version `20250710` #;
+ %put # Macro to get preview of a SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -82,6 +82,7 @@ des = 'Macro to preview content of a SAS package, version 20250710. Run %preview
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
diff --git a/SPF/Macros/splitcodeforpackage.sas b/SPF/Macros/splitcodeforpackage.sas
index f8f62a0..2245e8c 100644
--- a/SPF/Macros/splitcodeforpackage.sas
+++ b/SPF/Macros/splitcodeforpackage.sas
@@ -8,7 +8,7 @@
,nobs=0 /* technical parameter */
)
/*** HELP START ***/
-/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20250710. Run %splitCodeForPackage() for help info.'
+/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20250728. Run %splitCodeForPackage() for help info.'
;
/*%macro _();%mend _;*/
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
@@ -25,7 +25,7 @@
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Utility macro to *split* single file with SAS package code into multiple #;
- %put # files with separate snippets, version `20250710` #;
+ %put # files with separate snippets, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -60,6 +60,7 @@
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
@@ -402,7 +403,7 @@ options nomprint nosymbolgen nomlogic notes source ls=MAX ps=MAX msglevel=N ;
*/
if firstLine[j] then
do;
- put '/* File generated with help of SAS Packages Framework, version 20250710. */';
+ put '/* File generated with help of SAS Packages Framework, version 20250728. */';
firstLine[j]=0;
end;
put _infile_;
diff --git a/SPF/Macros/unloadpackage.sas b/SPF/Macros/unloadpackage.sas
index 577a787..3427324 100644
--- a/SPF/Macros/unloadpackage.sas
+++ b/SPF/Macros/unloadpackage.sas
@@ -20,7 +20,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for help info.'
+des = 'Macro to unload SAS package, version 20250728. Run %unloadPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -35,7 +35,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
%put ### This is short help information for the `unloadPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to unload SAS packages, version `20250710` #;
+ %put # Macro to unload SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -75,6 +75,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example #####################################################################;
%put # #;
diff --git a/SPF/Macros/verifypackage.sas b/SPF/Macros/verifypackage.sas
index 052d187..922ab52 100644
--- a/SPF/Macros/verifypackage.sas
+++ b/SPF/Macros/verifypackage.sas
@@ -13,7 +13,7 @@
hashing_file() function, SAS 9.4M6 */
)/secure
/*** HELP END ***/
-des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %verifyPackage() for help info.'
+des = 'Macro to verify SAS package with the hash digest, version 20250728. Run %verifyPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -28,7 +28,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
%put ### This is short help information for the `verifyPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to verify SAS package with it hash digest, version `20250710` #;
+ %put # Macro to verify SAS package with it hash digest, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -58,6 +58,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
diff --git a/SPF/SPFinit.md b/SPF/SPFinit.md
index cd38071..3d23939 100644
--- a/SPF/SPFinit.md
+++ b/SPF/SPFinit.md
@@ -1,7 +1,7 @@
---
-# SAS Packages Framework, version `20250710`
+# SAS Packages Framework, version `20250728`
---
@@ -29,7 +29,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 **`20250710`**.
+In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20250728`**.
**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).
@@ -43,7 +43,7 @@ After assigning the directory do not change them when using the SPF since it may
## Tutorial on SAS Packages and SAS Packages Framework
-"From 0 to hero" tutorial explaining what are SAS Packages, and how to work with
+"From 0 to hero" tutorial explaining what are SAS Packages, and how to work with
them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPackages).
--------------------------------------------------------------------------------------------
@@ -52,7 +52,7 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
## This is short help information for the `installPackage` macro
--------------------------------------------------------------------------------------------
- Macro to install SAS packages, version `20250710`
+ Macro to install SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -84,18 +84,20 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
`https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/`
- `mirror=` Indicates which web location for packages installation is used.
- Value `0` indicates:
+ Value `0` or `SASPAC` indicates:
`https://github.com/SASPAC/`
Value `1` indicates:
`https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main`
Value `2` indicates:
`https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES`
+ Value `3` or `PharmaForest` indicates:
+ `https://github.com/PharmaForest/`
Default value is `0`.
- `version=` Indicates which historical version of a package to install.
- Historical version are available only if `mirror=0` is set.
+ Historical version are currently available only if `mirror=0` is set.
Default value is null which means "install the latest".
- When there are multiple packages to install version
+ When there are multiple packages to install version variable
is scan sequentially.
- `replace=` With default value of `1` it causes existing package file
@@ -129,6 +131,8 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example ################################################################################
Enabling the SAS Package Framework
@@ -153,7 +157,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Enabling the SAS Package Framework
from the local directory and installing & loading
- the multiple packages from the Internet.
+ multiple packages with versions from the Internet.
Assume that the `SPFinit.sas` file
is located in the "C:/SAS_PACKAGES/" folder.
@@ -171,7 +175,7 @@ filename packages "C:/SAS_PACKAGES";
## This is short help information for the `helpPackage` macro
-------------------------------------------------------------------------------
- Macro to get help about SAS packages, version `20250710`
+ Macro to get help about SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -222,6 +226,8 @@ filename packages "C:/SAS_PACKAGES";
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
## Example ####################################################################
Enabling the SAS Package Framework
@@ -247,7 +253,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `loadPackage` macro
-------------------------------------------------------------------------------
- Macro to *load* SAS packages, version `20250710`
+ Macro to *load* SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -316,6 +322,8 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
## Example 1 ##################################################################
Enabling the SAS Package Framework
@@ -403,7 +411,7 @@ If created, those macros are automatically deleted when the `%unloadPackage()` m
## This is short help information for the `loadPackageS` macro
-------------------------------------------------------------------------------
- Macro wrapper for the loadPackage macro, version `20250710`
+ Macro wrapper for the loadPackage macro, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -429,6 +437,8 @@ If created, those macros are automatically deleted when the `%unloadPackage()` m
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example ###################################################################
Enabling the SAS Package Framework
@@ -452,7 +462,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `unloadPackage` macro
-------------------------------------------------------------------------------
- Macro to unload SAS packages, version `20250710`
+ Macro to unload SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -493,6 +503,8 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example ###################################################################
Enabling the SAS Package Framework
@@ -517,7 +529,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `listPackages` macro
-----------------------------------------------------------------------------------------
- Macro to list available SAS packages, version `20250710`
+ Macro to list available SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -537,6 +549,8 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example #############################################################################
Enabling the SAS Package Framework
@@ -558,7 +572,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `verifyPackage` macro
-------------------------------------------------------------------------------
- Macro to verify SAS package with it hash digest, version `20250710`
+ Macro to verify SAS package with it hash digest, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -612,7 +626,7 @@ filename packages "C:/SAS_PACKAGES"; %* set-up a directory for packages;
## This is short help information for the `previewPackage` macro
-------------------------------------------------------------------------------
- Macro to get preview of a SAS packages, version `20250710`
+ Macro to get preview of a SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -658,6 +672,8 @@ filename packages "C:/SAS_PACKAGES"; %* set-up a directory for packages;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example ###################################################################
Enabling the SAS Package Framework
@@ -679,7 +695,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
## This is short help information for the `generatePackage` macro
-------------------------------------------------------------------------------
- Macro to generate SAS packages, version `20250710`
+ Macro to generate SAS packages, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -894,7 +910,7 @@ All files have to have `.sas` extension. Other files are ignored.
## This is short help information for the `extendPackagesFileref` macro
-----------------------------------------------------------------------------------------
- Macro to list directories pointed by 'packages' fileref, version `20250710`
+ Macro to list directories pointed by 'packages' fileref, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -913,6 +929,8 @@ All files have to have `.sas` extension. Other files are ignored.
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example ###################################################################
Enabling the SAS Package Framework
@@ -934,7 +952,7 @@ filename packages ("D:/NEW_DIR" %extendPackagesFileref()); %* add new directory;
## This is short help information for the `loadPackageAddCnt` macro
-------------------------------------------------------------------------------
- Macro to load *additional content* for a SAS package, version `20250710`
+ Macro to load *additional content* for a SAS package, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -975,6 +993,8 @@ filename packages ("D:/NEW_DIR" %extendPackagesFileref()); %* add new directory;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
-------------------------------------------------------------------------------
By *default* additional content is not deployed automatically e.g.,
@@ -1026,7 +1046,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 `20250710`
+ files with separate snippets, version `20250728`
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1062,6 +1082,8 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more.
+ Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
+
### Example 1 ##################################################################
Assume that the `myPackageCode.sas` file
diff --git a/SPF/SPFinit.sas b/SPF/SPFinit.sas
index 2d4065d..4f871d9 100644
--- a/SPF/SPFinit.sas
+++ b/SPF/SPFinit.sas
@@ -42,7 +42,7 @@
- to unload, or
- to generate SAS packages.
- Version 20250710.
+ Version 20250728.
See examples below.
A SAS package is a zip file containing a group of files
@@ -91,7 +91,7 @@
*/
)/secure
/*** HELP END ***/
-des = 'Macro to load SAS package, version 20250710. Run %loadPackage() for help info.'
+des = 'Macro to load SAS package, version 20250728. Run %loadPackage() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -107,7 +107,7 @@ minoperator
%put ### This is short help information for the `loadPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to *load* SAS packages, version `20250710` #;
+ %put # Macro to *load* SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -175,6 +175,7 @@ minoperator
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
@@ -383,7 +384,7 @@ minoperator
*/
)/secure
/*** HELP END ***/
-des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for help info.'
+des = 'Macro to unload SAS package, version 20250728. Run %unloadPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -398,7 +399,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
%put ### This is short help information for the `unloadPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to unload SAS packages, version `20250710` #;
+ %put # Macro to unload SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -438,6 +439,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example #####################################################################;
%put # #;
@@ -550,7 +552,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
*/
)/secure
/*** HELP END ***/
-des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage() for help info.'
+des = 'Macro to get help about SAS package, version 20250728. Run %helpPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -565,7 +567,7 @@ des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage()
%put ### This is short help information for the `helpPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to get help about SAS packages, version `20250710` #;
+ %put # Macro to get help about SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -615,6 +617,7 @@ des = 'Macro to get help about SAS package, version 20250710. Run %helpPackage()
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
@@ -707,7 +710,7 @@ TODO:
*/
/*+installPackage+*/
-/* Macros to install SAS packages, version 20250710 */
+/* Macros to install SAS packages, version 20250728 */
/* A SAS package is a zip file containing a group of files
with SAS code (macros, functions, data steps generating
data, etc.) wrapped up together and %INCLUDEed by
@@ -733,7 +736,7 @@ TODO:
/secure
minoperator
/*** HELP END ***/
-des = 'Macro to install SAS package, version 20250710. Run %%installPackage() for help info.'
+des = 'Macro to install SAS package, version 20250728. Run %%installPackage() for help info.'
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
%do;
@@ -748,7 +751,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put ### This is short help information for the `installPackage` macro #;
%put #--------------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to install SAS packages, version `20250710` #;
+ %put # Macro to install SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -781,16 +784,18 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/` #;
%put # #;
%put # - `mirror=` Indicates which web location for packages installation is used. #;
- %put # Value `0` indicates: #;
+ %put # Value `0` or `SASPAC` indicates: #;
%put # `https://github.com/SASPAC/` #;
%put # Value `1` indicates: #;
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #;
%put # Value `2` indicates: #;
%put # `https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES` #;
+ %put # Value `3` or `PharmaForest` indicates: #;
+ %put # `https://github.com/PharmaForest/` #;
%put # Default value is `0`. #;
%put # #;
%put # - `version=` Indicates which historical version of a package to install. #;
- %put # Historical version are available only if `mirror=0` is set. #;
+ %put # Historical version are currently available only if `mirror=0` is set. #;
%put # Default value is null which means "install the latest". #;
%put # When there are multiple packages to install version variable #;
%put # is scan sequentially. #;
@@ -826,6 +831,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example #################################################################################;
%put # #;
@@ -850,7 +856,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #;
%put # Enabling the SAS Package Framework #;
%put # from the local directory and installing & loading #;
- %put # the multiple packages from the Internet. #;
+ %put # multiple packages with versions from the Internet. #;
%put # #;
%put # Assume that the `SPFinit.sas` file #;
%put # is located in the "C:/SAS_PACKAGES/" folder. #;
@@ -910,11 +916,21 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
%let sourcePath = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/packages/;
+ %if %qupcase(%superq(mirror))=SASPAC %then %let mirror = 0;
+ %if %qupcase(%superq(mirror))=PHARMAFOREST %then %let mirror = 3;
+
+ %if NOT (%superq(mirror) IN (0 1 2 3)) %then
+ %do;
+ %put WARNING: Unknown mirror: %superq(mirror)!;
+ %put WARNING- Default will be used.;
+ %let mirror = 0;
+ %end;
+
%if 0 = %superq(mirror) %then
%do;
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas;
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
- %let sourcePath = https://github.com/SASPAC/; /*usercontent*/
+ %let sourcePath = https://github.com/SASPAC/; /*users content*/
%goto mirrorEnd;
%end;
@@ -933,6 +949,16 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let sourcePath = https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES/packages/;
%goto mirrorEnd;
%end;
+
+ %if 3 = %superq(mirror) %then
+ %do;
+ %let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas;
+ %let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
+ /* ingnore version support for pharmaForest for now */
+ %let sourcePath = https://github.com/PharmaForest/; /*users content*/
+ %goto mirrorEnd;
+ %end;
+
%mirrorEnd:
%put INFO: Source path is &sourcePath.;
%end;
@@ -981,7 +1007,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let vers=;
%if %superq(versB) ne %then %let vers = &versB.;
%if %superq(versA) ne %then %let vers = &versA.;
- %if -1 = &mirror %then /* ignore version when direct path is provided */
+ %if %eval(-1 = &mirror) OR %eval(3 = &mirror) %then /* ignore version when direct path or PharmaForest is provided */
%do;
%let vers=;
%end;
@@ -1028,7 +1054,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end;
%else
%do;
- %if 0 = %superq(mirror) %then
+ %if %superq(mirror) IN (0 3) %then /* SASPAC or PharmaForest */
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
@@ -1040,7 +1066,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end;
%else
%do;
- %if %superq(mirror) > 0 %then
+ %if %superq(mirror) NE 0 %then
%put %str( )Mirror %superq(mirror) does not support versioning.;
%end;
@@ -1360,7 +1386,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
Macro to list SAS packages in packages folder.
- Version 20250710
+ Version 20250728
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1380,7 +1406,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%macro listPackages()
/secure PARMBUFF
-des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20250710.'
+des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20250728.'
;
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
%do;
@@ -1395,7 +1421,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
%put ### This is short help information for the `listPackages` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to list available SAS packages, version `20250710` #;
+ %put # Macro to list available SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -1414,6 +1440,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ##############################################################################;
%put # #;
@@ -1546,7 +1573,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
Macro to generate SAS packages.
- Version 20250710
+ Version 20250728
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
@@ -1586,7 +1613,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
file name be created */
)/ secure minoperator
/*** HELP END ***/
-des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage() for help info.'
+des = 'Macro to generate SAS packages, version 20250728. Run %generatePackage() for help info.'
;
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
%do;
@@ -1601,7 +1628,7 @@ des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage()
%put ### This is short help information for the `generatePackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to generate SAS packages, version `20250710` #;
+ %put # Macro to generate SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -1616,6 +1643,7 @@ des = 'Macro to generate SAS packages, version 20250710. Run %generatePackage()
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to read about the details of package generation process. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Parameters: #;
%put # #;
@@ -2415,7 +2443,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */
%end;
-footnote1 "SAS Packages Framework, version 20250710";
+footnote1 "SAS Packages Framework, version 20250728";
proc print
data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent)
@@ -3239,7 +3267,7 @@ data _null_;
%end;
put +(-1) '`.;''' /
' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' /
- ' !! '' %put with the SAS Packages Framework version 20250710.;''' /
+ ' !! '' %put with the SAS Packages Framework version 20250728.;''' /
' !! '' %put ****************************************************************************;''' /
' !! '' %GOTO theEndOfTheMacro;''' /
' !! '' %end;''' ;
@@ -3404,7 +3432,7 @@ data _null_;
%end;
put +(-1) '`.; '' !!' /
''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !!' /
- ''' %put with the SAS Packages Framework version 20250710.; '' !! ' /
+ ''' %put with the SAS Packages Framework version 20250728.; '' !! ' /
''' %put ****************************************************************************; '' !! ' /
''' %GOTO theEndOfTheMacro; '' !! ' /
''' %end; '' !! ' /
@@ -4211,7 +4239,7 @@ data _null_;
%end;
put 'put " " / @3 "--------------------------------------------------------------------" / " ";'
- / 'put @3 "*SAS package generated by SAS Package Framework, version `20250710`*";'
+ / 'put @3 "*SAS package generated by SAS Package Framework, version `20250728`*";'
/ 'put " " / @3 "--------------------------------------------------------------------";';
put 'run; ' /;
@@ -5249,7 +5277,7 @@ data &filesWithCodes.markdown;
%end;
put " " / "--------------------------------------------------------------------" / " "
- / "*SAS package generated by SAS Package Framework, version `20250710`*"
+ / "*SAS package generated by SAS Package Framework, version `20250728`*"
/ " " / "--------------------------------------------------------------------" / " ";
put "# The `&packageName.` package content";
@@ -5527,7 +5555,7 @@ TODO: (in Polish)
*/
)/secure
/*** HELP END ***/
-des = 'Macro to load multiple SAS packages at one run, version 20250710. Run %loadPackages() for help info.'
+des = 'Macro to load multiple SAS packages at one run, version 20250728. Run %loadPackages() for help info.'
parmbuff
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
@@ -5543,7 +5571,7 @@ parmbuff
%put ### This is short help information for the `loadPackageS` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro wrapper for the loadPackage macro, version `20250710` #;
+ %put # Macro wrapper for the loadPackage macro, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -5568,6 +5596,7 @@ parmbuff
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
@@ -5640,7 +5669,7 @@ parmbuff
hashing_file() function, SAS 9.4M6 */
)/secure
/*** HELP END ***/
-des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %verifyPackage() for help info.'
+des = 'Macro to verify SAS package with the hash digest, version 20250728. Run %verifyPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -5655,7 +5684,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
%put ### This is short help information for the `verifyPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to verify SAS package with it hash digest, version `20250710` #;
+ %put # Macro to verify SAS package with it hash digest, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -5685,6 +5714,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
@@ -5836,7 +5866,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
*/
)/secure
/*** HELP END ***/
-des = 'Macro to preview content of a SAS package, version 20250710. Run %previewPackage() for help info.'
+des = 'Macro to preview content of a SAS package, version 20250728. Run %previewPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
@@ -5851,7 +5881,7 @@ des = 'Macro to preview content of a SAS package, version 20250710. Run %preview
%put ### This is short help information for the `previewPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to get preview of a SAS packages, version `20250710` #;
+ %put # Macro to get preview of a SAS packages, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -5895,6 +5925,7 @@ des = 'Macro to preview content of a SAS package, version 20250710. Run %preview
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ####################################################################;
%put # #;
@@ -5982,7 +6013,7 @@ des = 'Macro to preview content of a SAS package, version 20250710. Run %preview
when empty the "packages" value is used */
)/secure
/*** HELP END ***/
-des = 'Macro to list directories pointed by "packages" fileref, version 20250710. Run %extendPackagesFileref(HELP) for help info.'
+des = 'Macro to list directories pointed by "packages" fileref, version 20250728. Run %extendPackagesFileref(HELP) for help info.'
;
%if %QUPCASE(&packages.) = HELP %then
@@ -5998,7 +6029,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20250710
%put ### This is short help information for the `extendPackagesFileref` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
- %put # Macro to list directories pointed by 'packages' fileref, version `20250710` #;
+ %put # Macro to list directories pointed by 'packages' fileref, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -6019,6 +6050,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20250710
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put #### Example ##############################################################################;
%put # #;
@@ -6099,7 +6131,7 @@ filename packages list;
is provided in required version */
)/secure
/*** HELP END ***/
-des = 'Macro to load additional content for a SAS package, version 20250710. Run %loadPackageAddCnt() for help info.'
+des = 'Macro to load additional content for a SAS package, version 20250728. Run %loadPackageAddCnt() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -6115,7 +6147,7 @@ minoperator
%put ### This is short help information for the `loadPackageAddCnt` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
- %put # Macro to *load* additional content for a SAS package, version `20250710` #;
+ %put # Macro to *load* additional content for a SAS package, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -6155,6 +6187,7 @@ minoperator
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
@@ -6472,7 +6505,7 @@ minoperator
,nobs=0 /* technical parameter */
)
/*** HELP START ***/
-/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20250710. Run %splitCodeForPackage() for help info.'
+/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20250728. Run %splitCodeForPackage() for help info.'
;
/*%macro _();%mend _;*/
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
@@ -6489,7 +6522,7 @@ minoperator
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Utility macro to *split* single file with SAS package code into multiple #;
- %put # files with separate snippets, version `20250710` #;
+ %put # files with separate snippets, version `20250728` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
@@ -6524,6 +6557,7 @@ minoperator
%put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #;
+ %put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #;
%put ### Example 1 ###################################################################;
%put # #;
@@ -6866,7 +6900,7 @@ options nomprint nosymbolgen nomlogic notes source ls=MAX ps=MAX msglevel=N ;
*/
if firstLine[j] then
do;
- put '/* File generated with help of SAS Packages Framework, version 20250710. */';
+ put '/* File generated with help of SAS Packages Framework, version 20250728. */';
firstLine[j]=0;
end;
put _infile_;