SAS Packages Framework, version 20250728

SAS Packages Framework, version 20250728

Changes:
- The `mirror=3` parameter in the `%installPackage()` macro allows access `https://github.com/PharmaForest/`.
- Values `SASPAC` and `PharmaForest` are accepted by the `mirror=` parameter in the `%installPackage()` macro.
- Documentation updated.
This commit is contained in:
Bart Jablonski
2025-07-28 10:39:12 +02:00
parent cc25b76144
commit 030a0932a8
16 changed files with 191 additions and 101 deletions

View File

@@ -16,7 +16,7 @@ Don't forget to give the repository a **STAR** and become [stargazer](https://gi
### Current version: ### Current version:
**The latest version** of the **SAS Packages Framework** is **`20250710`**. **The latest version** of the **SAS Packages Framework** is **`20250728`**.
--- ---

View File

@@ -6,7 +6,7 @@
when empty the "packages" value is used */ when empty the "packages" value is used */
)/secure )/secure
/*** HELP END ***/ /*** 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 %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 ### This is short help information for the `extendPackagesFileref` macro #;
%put #-----------------------------------------------------------------------------------------#;; %put #-----------------------------------------------------------------------------------------#;;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ##############################################################################; %put #### Example ##############################################################################;
%put # #; %put # #;

View File

@@ -3,7 +3,7 @@
Macro to generate SAS packages. Macro to generate SAS packages.
Version 20250710 Version 20250728
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating of SAS codes (macros, functions, data steps generating
@@ -43,7 +43,7 @@
file name be created */ file name be created */
)/ secure minoperator )/ secure minoperator
/*** HELP END ***/ /*** 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 %if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
%do; %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 ### This is short help information for the `generatePackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to generate SAS packages, version `20250710` #; %put # Macro to generate SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to read about the details of package generation process. #; %put # to read about the details of package generation process. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Parameters: #; %put #### Parameters: #;
%put # #; %put # #;
@@ -872,7 +873,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */ title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */
%end; %end;
footnote1 "SAS Packages Framework, version 20250710"; footnote1 "SAS Packages Framework, version 20250728";
proc print proc print
data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent) data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent)
@@ -1696,7 +1697,7 @@ data _null_;
%end; %end;
put +(-1) '`.;''' / put +(-1) '`.;''' /
' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' / ' !! '' %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 ****************************************************************************;''' / ' !! '' %put ****************************************************************************;''' /
' !! '' %GOTO theEndOfTheMacro;''' / ' !! '' %GOTO theEndOfTheMacro;''' /
' !! '' %end;''' ; ' !! '' %end;''' ;
@@ -1861,7 +1862,7 @@ data _null_;
%end; %end;
put +(-1) '`.; '' !!' / put +(-1) '`.; '' !!' /
''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !!' / ''' %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 ****************************************************************************; '' !! ' / ''' %put ****************************************************************************; '' !! ' /
''' %GOTO theEndOfTheMacro; '' !! ' / ''' %GOTO theEndOfTheMacro; '' !! ' /
''' %end; '' !! ' / ''' %end; '' !! ' /
@@ -2668,7 +2669,7 @@ data _null_;
%end; %end;
put 'put " " / @3 "--------------------------------------------------------------------" / " ";' 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 " " / @3 "--------------------------------------------------------------------";';
put 'run; ' /; put 'run; ' /;
@@ -3706,7 +3707,7 @@ data &filesWithCodes.markdown;
%end; %end;
put " " / "--------------------------------------------------------------------" / " " put " " / "--------------------------------------------------------------------" / " "
/ "*SAS package generated by SAS Package Framework, version `20250710`*" / "*SAS package generated by SAS Package Framework, version `20250728`*"
/ " " / "--------------------------------------------------------------------" / " "; / " " / "--------------------------------------------------------------------" / " ";
put "# The `&packageName.` package content"; put "# The `&packageName.` package content";

View File

@@ -28,7 +28,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `helpPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to get help about SAS packages, version `20250710` #; %put # Macro to get help about SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;

View File

@@ -1,5 +1,5 @@
/*+installPackage+*/ /*+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 /* A SAS package is a zip file containing a group of files
with SAS code (macros, functions, data steps generating with SAS code (macros, functions, data steps generating
data, etc.) wrapped up together and %INCLUDEed by data, etc.) wrapped up together and %INCLUDEed by
@@ -25,7 +25,7 @@
/secure /secure
minoperator minoperator
/*** HELP END ***/ /*** 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 %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
%do; %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 ### This is short help information for the `installPackage` macro #;
%put #--------------------------------------------------------------------------------------------#;; %put #--------------------------------------------------------------------------------------------#;;
%put # #; %put # #;
%put # Macro to install SAS packages, version `20250710` #; %put # Macro to install SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/` #;
%put # #; %put # #;
%put # - `mirror=` Indicates which web location for packages installation is used. #; %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 # `https://github.com/SASPAC/` #;
%put # Value `1` indicates: #; %put # Value `1` indicates: #;
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #; %put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #;
%put # Value `2` indicates: #; %put # Value `2` indicates: #;
%put # `https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES` #; %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 # Default value is `0`. #;
%put # #; %put # #;
%put # - `version=` Indicates which historical version of a package to install. #; %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 # Default value is null which means "install the latest". #;
%put # When there are multiple packages to install version variable #; %put # When there are multiple packages to install version variable #;
%put # is scan sequentially. #; %put # is scan sequentially. #;
@@ -118,6 +120,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example #################################################################################; %put #### Example #################################################################################;
%put # #; %put # #;
@@ -142,7 +145,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #; %put # #;
%put # Enabling the SAS Package Framework #; %put # Enabling the SAS Package Framework #;
%put # from the local directory and installing & loading #; %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 # #;
%put # Assume that the `SPFinit.sas` file #; %put # Assume that the `SPFinit.sas` file #;
%put # is located in the "C:/SAS_PACKAGES/" folder. #; %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 SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
%let sourcePath = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/packages/; %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 %if 0 = %superq(mirror) %then
%do; %do;
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas; %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 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; %goto mirrorEnd;
%end; %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/; %let sourcePath = https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES/packages/;
%goto mirrorEnd; %goto mirrorEnd;
%end; %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: %mirrorEnd:
%put INFO: Source path is &sourcePath.; %put INFO: Source path is &sourcePath.;
%end; %end;
@@ -273,7 +296,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let vers=; %let vers=;
%if %superq(versB) ne %then %let vers = &versB.; %if %superq(versB) ne %then %let vers = &versB.;
%if %superq(versA) ne %then %let vers = &versA.; %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; %do;
%let vers=; %let vers=;
%end; %end;
@@ -320,7 +343,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end; %end;
%else %else
%do; %do;
%if 0 = %superq(mirror) %then %if %superq(mirror) IN (0 3) %then /* SASPAC or PharmaForest */
%do; %do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/; %let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
@@ -332,7 +355,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end; %end;
%else %else
%do; %do;
%if %superq(mirror) > 0 %then %if %superq(mirror) NE 0 %then
%put %str( )Mirror %superq(mirror) does not support versioning.; %put %str( )Mirror %superq(mirror) does not support versioning.;
%end; %end;

View File

@@ -3,7 +3,7 @@
Macro to list SAS packages in packages folder. Macro to list SAS packages in packages folder.
Version 20250710 Version 20250728
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating of SAS codes (macros, functions, data steps generating
@@ -23,7 +23,7 @@
%macro listPackages() %macro listPackages()
/secure PARMBUFF /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 %if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
%do; %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 ### This is short help information for the `listPackages` macro #;
%put #-----------------------------------------------------------------------------------------#;; %put #-----------------------------------------------------------------------------------------#;;
%put # #; %put # #;
%put # Macro to list available SAS packages, version `20250710` #; %put # Macro to list available SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ##############################################################################; %put #### Example ##############################################################################;
%put # #; %put # #;

View File

@@ -36,7 +36,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 minoperator
; ;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -52,7 +52,7 @@ minoperator
%put ### This is short help information for the `loadPackage` macro #; %put ### This is short help information for the `loadPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to *load* SAS packages, version `20250710` #; %put # Macro to *load* SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -120,6 +120,7 @@ minoperator
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;

View File

@@ -19,7 +19,7 @@
is provided in required version */ is provided in required version */
)/secure )/secure
/*** HELP END ***/ /*** 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 minoperator
; ;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -35,7 +35,7 @@ minoperator
%put ### This is short help information for the `loadPackageAddCnt` macro #; %put ### This is short help information for the `loadPackageAddCnt` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -75,6 +75,7 @@ minoperator
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;

View File

@@ -11,7 +11,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 parmbuff
; ;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
@@ -27,7 +27,7 @@ parmbuff
%put ### This is short help information for the `loadPackageS` macro #; %put ### This is short help information for the `loadPackageS` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro wrapper for the loadPackage macro, version `20250710` #; %put # Macro wrapper for the loadPackage macro, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -52,6 +52,7 @@ parmbuff
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;

View File

@@ -23,7 +23,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `previewPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;

View File

@@ -8,7 +8,7 @@
,nobs=0 /* technical parameter */ ,nobs=0 /* technical parameter */
) )
/*** HELP START ***/ /*** 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 _;*/ /*%macro _();%mend _;*/
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then %if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
@@ -25,7 +25,7 @@
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Utility macro to *split* single file with SAS package code into multiple #; %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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -60,6 +60,7 @@
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;
@@ -402,7 +403,7 @@ options nomprint nosymbolgen nomlogic notes source ls=MAX ps=MAX msglevel=N ;
*/ */
if firstLine[j] then if firstLine[j] then
do; 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; firstLine[j]=0;
end; end;
put _infile_; put _infile_;

View File

@@ -20,7 +20,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `unloadPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to unload SAS packages, version `20250710` #; %put # Macro to unload SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example #####################################################################; %put ### Example #####################################################################;
%put # #; %put # #;

View File

@@ -13,7 +13,7 @@
hashing_file() function, SAS 9.4M6 */ hashing_file() function, SAS 9.4M6 */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `verifyPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;

View File

@@ -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. 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). **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 ## 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). 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 <a name="installpackage"></a> ## This is short help information for the `installPackage` macro <a name="installpackage"></a>
-------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------
Macro to install SAS packages, version `20250710` Macro to install SAS packages, version `20250728`
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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/` `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/`
- `mirror=` Indicates which web location for packages installation is used. - `mirror=` Indicates which web location for packages installation is used.
Value `0` indicates: Value `0` or `SASPAC` indicates:
`https://github.com/SASPAC/` `https://github.com/SASPAC/`
Value `1` indicates: Value `1` indicates:
`https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main`
Value `2` indicates: Value `2` indicates:
`https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES` `https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES`
Value `3` or `PharmaForest` indicates:
`https://github.com/PharmaForest/`
Default value is `0`. Default value is `0`.
- `version=` Indicates which historical version of a package to install. - `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". 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. is scan sequentially.
- `replace=` With default value of `1` it causes existing package file - `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. Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ################################################################################ ### Example ################################################################################
Enabling the SAS Package Framework Enabling the SAS Package Framework
@@ -153,7 +157,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
Enabling the SAS Package Framework Enabling the SAS Package Framework
from the local directory and installing & loading 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 Assume that the `SPFinit.sas` file
is located in the "C:/SAS_PACKAGES/" folder. 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 <a name="helppackage"></a> ## This is short help information for the `helpPackage` macro <a name="helppackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
## Example #################################################################### ## Example ####################################################################
Enabling the SAS Package Framework 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 <a name="loadpackage"></a> ## This is short help information for the `loadPackage` macro <a name="loadpackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Macro to *load* SAS packages, version `20250710` Macro to *load* SAS packages, version `20250728`
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
## Example 1 ################################################################## ## Example 1 ##################################################################
Enabling the SAS Package Framework 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 <a name="loadpackages"></a> ## This is short help information for the `loadPackageS` macro <a name="loadpackages"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ################################################################### ### Example ###################################################################
Enabling the SAS Package Framework 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 <a name="unloadpackage"></a> ## This is short help information for the `unloadPackage` macro <a name="unloadpackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Macro to unload SAS packages, version `20250710` Macro to unload SAS packages, version `20250728`
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ################################################################### ### Example ###################################################################
Enabling the SAS Package Framework 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 <a name="listpackages"></a> ## This is short help information for the `listPackages` macro <a name="listpackages"></a>
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ############################################################################# ### Example #############################################################################
Enabling the SAS Package Framework 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 <a name="verifypackage"></a> ## This is short help information for the `verifyPackage` macro <a name="verifypackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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 <a name="previewpackage"></a> ## This is short help information for the `previewPackage` macro <a name="previewpackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ################################################################### ### Example ###################################################################
Enabling the SAS Package Framework 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 <a name="generatepackage"></a> ## This is short help information for the `generatePackage` macro <a name="generatepackage"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Macro to generate SAS packages, version `20250710` Macro to generate SAS packages, version `20250728`
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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 <a name="extendpackagesfileref"></a> ## This is short help information for the `extendPackagesFileref` macro <a name="extendpackagesfileref"></a>
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example ################################################################### ### Example ###################################################################
Enabling the SAS Package Framework 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 <a name="loadpackageaddcnt"></a> ## This is short help information for the `loadPackageAddCnt` macro <a name="loadpackageaddcnt"></a>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
By *default* additional content is not deployed automatically e.g., 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 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 A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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` Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation`
to learn more. to learn more.
Tutorials available at: `https://github.com/yabwon/HoW-SASPackages`
### Example 1 ################################################################## ### Example 1 ##################################################################
Assume that the `myPackageCode.sas` file Assume that the `myPackageCode.sas` file

View File

@@ -42,7 +42,7 @@
- to unload, or - to unload, or
- to generate SAS packages. - to generate SAS packages.
Version 20250710. Version 20250728.
See examples below. See examples below.
A SAS package is a zip file containing a group of files A SAS package is a zip file containing a group of files
@@ -91,7 +91,7 @@
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 minoperator
; ;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -107,7 +107,7 @@ minoperator
%put ### This is short help information for the `loadPackage` macro #; %put ### This is short help information for the `loadPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to *load* SAS packages, version `20250710` #; %put # Macro to *load* SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -175,6 +175,7 @@ minoperator
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;
@@ -383,7 +384,7 @@ minoperator
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `unloadPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to unload SAS packages, version `20250710` #; %put # Macro to unload SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example #####################################################################; %put ### Example #####################################################################;
%put # #; %put # #;
@@ -550,7 +552,7 @@ des = 'Macro to unload SAS package, version 20250710. Run %unloadPackage() for h
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `helpPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to get help about SAS packages, version `20250710` #; %put # Macro to get help about SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;
@@ -707,7 +710,7 @@ TODO:
*/ */
/*+installPackage+*/ /*+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 /* A SAS package is a zip file containing a group of files
with SAS code (macros, functions, data steps generating with SAS code (macros, functions, data steps generating
data, etc.) wrapped up together and %INCLUDEed by data, etc.) wrapped up together and %INCLUDEed by
@@ -733,7 +736,7 @@ TODO:
/secure /secure
minoperator minoperator
/*** HELP END ***/ /*** 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 %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
%do; %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 ### This is short help information for the `installPackage` macro #;
%put #--------------------------------------------------------------------------------------------#;; %put #--------------------------------------------------------------------------------------------#;;
%put # #; %put # #;
%put # Macro to install SAS packages, version `20250710` #; %put # Macro to install SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/` #;
%put # #; %put # #;
%put # - `mirror=` Indicates which web location for packages installation is used. #; %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 # `https://github.com/SASPAC/` #;
%put # Value `1` indicates: #; %put # Value `1` indicates: #;
%put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #; %put # `https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main` #;
%put # Value `2` indicates: #; %put # Value `2` indicates: #;
%put # `https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES` #; %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 # Default value is `0`. #;
%put # #; %put # #;
%put # - `version=` Indicates which historical version of a package to install. #; %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 # Default value is null which means "install the latest". #;
%put # When there are multiple packages to install version variable #; %put # When there are multiple packages to install version variable #;
%put # is scan sequentially. #; %put # is scan sequentially. #;
@@ -826,6 +831,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example #################################################################################; %put #### Example #################################################################################;
%put # #; %put # #;
@@ -850,7 +856,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%put # #; %put # #;
%put # Enabling the SAS Package Framework #; %put # Enabling the SAS Package Framework #;
%put # from the local directory and installing & loading #; %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 # #;
%put # Assume that the `SPFinit.sas` file #; %put # Assume that the `SPFinit.sas` file #;
%put # is located in the "C:/SAS_PACKAGES/" folder. #; %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 SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.md;
%let sourcePath = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/packages/; %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 %if 0 = %superq(mirror) %then
%do; %do;
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/main/SPF/SPFinit.sas; %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 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; %goto mirrorEnd;
%end; %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/; %let sourcePath = https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/SAS_PACKAGES/packages/;
%goto mirrorEnd; %goto mirrorEnd;
%end; %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: %mirrorEnd:
%put INFO: Source path is &sourcePath.; %put INFO: Source path is &sourcePath.;
%end; %end;
@@ -981,7 +1007,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%let vers=; %let vers=;
%if %superq(versB) ne %then %let vers = &versB.; %if %superq(versB) ne %then %let vers = &versB.;
%if %superq(versA) ne %then %let vers = &versA.; %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; %do;
%let vers=; %let vers=;
%end; %end;
@@ -1028,7 +1054,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end; %end;
%else %else
%do; %do;
%if 0 = %superq(mirror) %then %if %superq(mirror) IN (0 3) %then /* SASPAC or PharmaForest */
%do; %do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/; %let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
@@ -1040,7 +1066,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
%end; %end;
%else %else
%do; %do;
%if %superq(mirror) > 0 %then %if %superq(mirror) NE 0 %then
%put %str( )Mirror %superq(mirror) does not support versioning.; %put %str( )Mirror %superq(mirror) does not support versioning.;
%end; %end;
@@ -1360,7 +1386,7 @@ des = 'Macro to install SAS package, version 20250710. Run %%installPackage() fo
Macro to list SAS packages in packages folder. Macro to list SAS packages in packages folder.
Version 20250710 Version 20250728
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating 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() %macro listPackages()
/secure PARMBUFF /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 %if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
%do; %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 ### This is short help information for the `listPackages` macro #;
%put #-----------------------------------------------------------------------------------------#;; %put #-----------------------------------------------------------------------------------------#;;
%put # #; %put # #;
%put # Macro to list available SAS packages, version `20250710` #; %put # Macro to list available SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ##############################################################################; %put #### Example ##############################################################################;
%put # #; %put # #;
@@ -1546,7 +1573,7 @@ options ls = &ls_tmp. ps = &ps_tmp. &notes_tmp. &source_tmp.;
Macro to generate SAS packages. Macro to generate SAS packages.
Version 20250710 Version 20250728
A SAS package is a zip file containing a group A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating of SAS codes (macros, functions, data steps generating
@@ -1586,7 +1613,7 @@ options ls = &ls_tmp. ps = &ps_tmp. &notes_tmp. &source_tmp.;
file name be created */ file name be created */
)/ secure minoperator )/ secure minoperator
/*** HELP END ***/ /*** 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 %if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
%do; %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 ### This is short help information for the `generatePackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro to generate SAS packages, version `20250710` #; %put # Macro to generate SAS packages, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to read about the details of package generation process. #; %put # to read about the details of package generation process. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Parameters: #; %put #### Parameters: #;
%put # #; %put # #;
@@ -2415,7 +2443,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */ title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */
%end; %end;
footnote1 "SAS Packages Framework, version 20250710"; footnote1 "SAS Packages Framework, version 20250728";
proc print proc print
data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent) data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent)
@@ -3239,7 +3267,7 @@ data _null_;
%end; %end;
put +(-1) '`.;''' / put +(-1) '`.;''' /
' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' / ' !! '' %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 ****************************************************************************;''' / ' !! '' %put ****************************************************************************;''' /
' !! '' %GOTO theEndOfTheMacro;''' / ' !! '' %GOTO theEndOfTheMacro;''' /
' !! '' %end;''' ; ' !! '' %end;''' ;
@@ -3404,7 +3432,7 @@ data _null_;
%end; %end;
put +(-1) '`.; '' !!' / put +(-1) '`.; '' !!' /
''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !!' / ''' %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 ****************************************************************************; '' !! ' / ''' %put ****************************************************************************; '' !! ' /
''' %GOTO theEndOfTheMacro; '' !! ' / ''' %GOTO theEndOfTheMacro; '' !! ' /
''' %end; '' !! ' / ''' %end; '' !! ' /
@@ -4211,7 +4239,7 @@ data _null_;
%end; %end;
put 'put " " / @3 "--------------------------------------------------------------------" / " ";' 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 " " / @3 "--------------------------------------------------------------------";';
put 'run; ' /; put 'run; ' /;
@@ -5249,7 +5277,7 @@ data &filesWithCodes.markdown;
%end; %end;
put " " / "--------------------------------------------------------------------" / " " put " " / "--------------------------------------------------------------------" / " "
/ "*SAS package generated by SAS Package Framework, version `20250710`*" / "*SAS package generated by SAS Package Framework, version `20250728`*"
/ " " / "--------------------------------------------------------------------" / " "; / " " / "--------------------------------------------------------------------" / " ";
put "# The `&packageName.` package content"; put "# The `&packageName.` package content";
@@ -5527,7 +5555,7 @@ TODO: (in Polish)
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 parmbuff
; ;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
@@ -5543,7 +5571,7 @@ parmbuff
%put ### This is short help information for the `loadPackageS` macro #; %put ### This is short help information for the `loadPackageS` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Macro wrapper for the loadPackage macro, version `20250710` #; %put # Macro wrapper for the loadPackage macro, version `20250728` #;
%put # #; %put # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -5568,6 +5596,7 @@ parmbuff
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;
@@ -5640,7 +5669,7 @@ parmbuff
hashing_file() function, SAS 9.4M6 */ hashing_file() function, SAS 9.4M6 */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `verifyPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %put # #;
@@ -5836,7 +5866,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20250710. Run %
*/ */
)/secure )/secure
/*** HELP END ***/ /*** 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 %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do; %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 ### This is short help information for the `previewPackage` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ####################################################################; %put #### Example ####################################################################;
%put # #; %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 */ when empty the "packages" value is used */
)/secure )/secure
/*** HELP END ***/ /*** 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 %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 ### This is short help information for the `extendPackagesFileref` macro #;
%put #-----------------------------------------------------------------------------------------#;; %put #-----------------------------------------------------------------------------------------#;;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %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 # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put #### Example ##############################################################################; %put #### Example ##############################################################################;
%put # #; %put # #;
@@ -6099,7 +6131,7 @@ filename packages list;
is provided in required version */ is provided in required version */
)/secure )/secure
/*** HELP END ***/ /*** 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 minoperator
; ;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
@@ -6115,7 +6147,7 @@ minoperator
%put ### This is short help information for the `loadPackageAddCnt` macro #; %put ### This is short help information for the `loadPackageAddCnt` macro #;
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -6155,6 +6187,7 @@ minoperator
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;
@@ -6472,7 +6505,7 @@ minoperator
,nobs=0 /* technical parameter */ ,nobs=0 /* technical parameter */
) )
/*** HELP START ***/ /*** 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 _;*/ /*%macro _();%mend _;*/
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then %if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
@@ -6489,7 +6522,7 @@ minoperator
%put #-------------------------------------------------------------------------------#; %put #-------------------------------------------------------------------------------#;
%put # #; %put # #;
%put # Utility macro to *split* single file with SAS package code into multiple #; %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 # #;
%put # A SAS package is a zip file containing a group #; %put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #; %put # of SAS codes (macros, functions, data steps generating #;
@@ -6524,6 +6557,7 @@ minoperator
%put # #; %put # #;
%put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #; %put # Visit: `https://github.com/yabwon/SAS_PACKAGES/tree/main/SPF/Documentation` #;
%put # to learn more. #; %put # to learn more. #;
%put # Tutorials available at: `https://github.com/yabwon/HoW-SASPackages` #;
%put # #; %put # #;
%put ### Example 1 ###################################################################; %put ### Example 1 ###################################################################;
%put # #; %put # #;
@@ -6866,7 +6900,7 @@ options nomprint nosymbolgen nomlogic notes source ls=MAX ps=MAX msglevel=N ;
*/ */
if firstLine[j] then if firstLine[j] then
do; 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; firstLine[j]=0;
end; end;
put _infile_; put _infile_;