mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2026-04-11 16:43:14 +00:00
Compare commits
119 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0fa43857e | ||
|
|
d2ef89e2b7 | ||
|
|
e355fc4eec | ||
|
|
29d1335e8a | ||
|
|
3906947225 | ||
|
|
d7623839b2 | ||
|
|
8f939144ba | ||
|
|
d24ae821f5 | ||
|
|
1668cfe6e4 | ||
|
|
ff1be76f9d | ||
|
|
0f7babea91 | ||
|
|
3c29e9eb9c | ||
|
|
37419f1826 | ||
|
|
f61e68490a | ||
|
|
b8d5f286d2 | ||
|
|
8d8186fc78 | ||
|
|
1d83c65a9b | ||
|
|
e8d1269f6c | ||
|
|
ba34a71ffe | ||
|
|
ff758fc2cc | ||
|
|
35b30ca45e | ||
|
|
bfdede5dd4 | ||
|
|
856c73758f | ||
|
|
104c38ab2c | ||
|
|
9a7b81c2ad | ||
|
|
a56da0fa4f | ||
|
|
edeb1729b5 | ||
|
|
9b2ec979e4 | ||
|
|
efda10b412 | ||
|
|
78a79d1fc7 | ||
|
|
e61a9689df | ||
|
|
044019608f | ||
|
|
fedf5b894d | ||
|
|
3c30e7d17c | ||
|
|
a99b75ffe9 | ||
|
|
e7357877f0 | ||
|
|
05946c92ce | ||
|
|
b3b36174af | ||
|
|
62fd354c6d | ||
|
|
7f97b47a21 | ||
|
|
340d13e56f | ||
|
|
d68697ea77 | ||
|
|
9bb8354faa | ||
|
|
d0ff15fe80 | ||
|
|
fe70185832 | ||
|
|
83bef9fe30 | ||
|
|
fd0a67de4e | ||
|
|
60405c2226 | ||
|
|
b6c554d994 | ||
|
|
b7ce4778bb | ||
|
|
956cfce026 | ||
|
|
2c1a7eacc3 | ||
|
|
1a6f0c0013 | ||
|
|
8a30b5a918 | ||
|
|
b209d022b3 | ||
|
|
680c021f72 | ||
|
|
ad15aa0e3b | ||
|
|
b78dac17e7 | ||
|
|
974f617772 | ||
|
|
5550b0d1de | ||
|
|
0979066509 | ||
|
|
344619d195 | ||
|
|
a7c6a670bf | ||
|
|
01513d9cdb | ||
|
|
62ad0c1045 | ||
|
|
be6d41ae7d | ||
|
|
c92edcbbd6 | ||
|
|
b6f9a65f5f | ||
|
|
d8451c08bc | ||
|
|
565d7d3f6e | ||
|
|
f2a72739c7 | ||
|
|
394aaab3be | ||
|
|
88e97ecd7f | ||
|
|
ebcad71357 | ||
|
|
e9e3518b6a | ||
|
|
e17c325e5c | ||
|
|
6891d9d4c6 | ||
|
|
1f093a749b | ||
|
|
9331fa488d | ||
|
|
6194dcb2a0 | ||
|
|
bbd018bf61 | ||
|
|
f3b3b55dba | ||
|
|
bd3a78adfd | ||
|
|
6487d74aaf | ||
|
|
4c734caeec | ||
|
|
11400fe51d | ||
|
|
6e5d4c3872 | ||
|
|
3ccf2490e1 | ||
|
|
9273e80a16 | ||
|
|
5cbe17b513 | ||
|
|
21a713ced7 | ||
|
|
0af4000d33 | ||
|
|
ae423c362b | ||
|
|
705a600534 | ||
|
|
2137c04534 | ||
|
|
49bcb64e51 | ||
|
|
8bdf820958 | ||
|
|
2045048ff3 | ||
|
|
f4007a22df | ||
|
|
96952896a2 | ||
|
|
f886a42b77 | ||
|
|
612e955983 | ||
|
|
907ad0865d | ||
|
|
9d37f157c7 | ||
|
|
f5159f9557 | ||
|
|
033961fba2 | ||
|
|
1e31a9cec4 | ||
|
|
9f8560aa61 | ||
|
|
4599a6e06d | ||
|
|
28c8afac49 | ||
|
|
aac8a3ca0a | ||
|
|
82bb81624f | ||
|
|
9bccf5b9f5 | ||
|
|
cad068d931 | ||
|
|
b9c280d983 | ||
|
|
ca72c14569 | ||
|
|
aa84650b42 | ||
|
|
60354ce484 | ||
|
|
793d0c7d6a |
@@ -17,7 +17,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 **`20260216`**.
|
**The latest version** of the **SAS Packages Framework** is **`20260411`**.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -190,7 +190,9 @@ The SAS Packages Framework [(short) documentation](https://github.com/yabwon/SAS
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Updates worth mentioning:
|
### Updates worth mentioning:
|
||||||
**Update**\[December 31st, 2025\]**:** `%bundlePackages()` and `%unbundlePackages()` **macros are available. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20241231 "bundling macros"))**.
|
**Update**\[April 9th, 2026\]**:**Packages can be installed from private repositories. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20260409 "bundling macros"))**.
|
||||||
|
|
||||||
|
**Update**\[December 31st, 2025\]**:** `%bundlePackages()` and `%unbundlePackages()` **macros are available. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20251231 "bundling macros"))**.
|
||||||
|
|
||||||
**Update**\[December 28th, 2025\]**:** `buildLocation=` and `archLocation=` **parameters added to** `%generatePackage()` **macro, they allow to redirect results of the packages generation process. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20251228 "redirect results with buildLocation="))**.
|
**Update**\[December 28th, 2025\]**:** `buildLocation=` and `archLocation=` **parameters added to** `%generatePackage()` **macro, they allow to redirect results of the packages generation process. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20251228 "redirect results with buildLocation="))**.
|
||||||
|
|
||||||
@@ -234,6 +236,7 @@ This is a list of locations where the SAS Packages Framework is used:
|
|||||||
- Warsaw (Poland)
|
- Warsaw (Poland)
|
||||||
- Osaka (Japan)
|
- Osaka (Japan)
|
||||||
- Kyoto (Japan)
|
- Kyoto (Japan)
|
||||||
|
- Boston (USA)
|
||||||
|
|
||||||
If you want to share that you are using the SPF let me know and I'll update the list.
|
If you want to share that you are using the SPF let me know and I'll update the list.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -8,7 +8,7 @@
|
|||||||
,packagesRef=packages
|
,packagesRef=packages
|
||||||
,ods= /* data set for report file */
|
,ods= /* data set for report file */
|
||||||
)/
|
)/
|
||||||
des='Macro to create a bundle of SAS packages, version 20260216. Run %bundlePackages(HELP) for help info.'
|
des='Macro to create a bundle of SAS packages, version 20260411. Run %bundlePackages(HELP) for help info.'
|
||||||
secure minoperator
|
secure minoperator
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ secure minoperator
|
|||||||
%put ### This is short help information for the `bundlePackages` macro #;
|
%put ### This is short help information for the `bundlePackages` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *create bundles* of SAS packages, version `20260216` #;
|
%put # Macro to *create bundles* of SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -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 20260216. Run %extendPackagesFileref(HELP) for help info.'
|
des = 'Macro to list directories pointed by "packages" fileref, version 20260411. 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 20260216
|
|||||||
%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 `20260216` #;
|
%put # Macro to list directories pointed by 'packages' fileref, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Macro to generate SAS packages.
|
Macro to generate SAS packages.
|
||||||
|
|
||||||
Version 20260216
|
Version 20260411
|
||||||
|
|
||||||
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
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
when empty takes buildLocation */
|
when empty takes buildLocation */
|
||||||
)/ secure minoperator
|
)/ secure minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to generate SAS packages, version 20260216. Run %generatePackage() for help info.'
|
des = 'Macro to generate SAS packages, version 20260411. Run %generatePackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -68,7 +68,7 @@ des = 'Macro to generate SAS packages, version 20260216. 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 `20260216` #;
|
%put # Macro to generate SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -950,7 +950,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
|
|||||||
title&_titleNumber_. "Package ZIP file location is: &buildLocation.";
|
title&_titleNumber_. "Package ZIP file location is: &buildLocation.";
|
||||||
%end;
|
%end;
|
||||||
|
|
||||||
footnote1 "SAS Packages Framework, version 20260216";
|
footnote1 "SAS Packages Framework, version 20260411";
|
||||||
|
|
||||||
proc print
|
proc print
|
||||||
data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent)
|
data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent)
|
||||||
@@ -1775,7 +1775,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 20260216.;'''
|
/ ' !! '' %put with the SAS Packages Framework version 20260411.;'''
|
||||||
/ ' !! '' %put ****************************************************************************;'''
|
/ ' !! '' %put ****************************************************************************;'''
|
||||||
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
||||||
/ ' !! '' %end;''' ;
|
/ ' !! '' %end;''' ;
|
||||||
@@ -1939,7 +1939,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 20260216.; '' !! ' /
|
''' %put with the SAS Packages Framework version 20260411.; '' !! ' /
|
||||||
''' %put ****************************************************************************; '' !! ' /
|
''' %put ****************************************************************************; '' !! ' /
|
||||||
''' %GOTO theEndOfTheMacro; '' !! ' /
|
''' %GOTO theEndOfTheMacro; '' !! ' /
|
||||||
''' %end; '' !! ' /
|
''' %end; '' !! ' /
|
||||||
@@ -2811,7 +2811,7 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
||||||
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260216`*";'
|
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260411`*";'
|
||||||
/ "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';"
|
/ "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';"
|
||||||
/ "put @3 '*using SAS release: `&sysvlong4.`.*';"
|
/ "put @3 '*using SAS release: `&sysvlong4.`.*';"
|
||||||
/ 'put " " / @3 "---------------------------------------------------------------------";';
|
/ 'put " " / @3 "---------------------------------------------------------------------";';
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to get help about SAS package, version 20260216. Run %helpPackage() for help info.'
|
des = 'Macro to get help about SAS package, version 20260411. 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 20260216. 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 `20260216` #;
|
%put # Macro to get help about SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*+installPackage+*/
|
/*+installPackage+*/
|
||||||
/* Macros to install SAS packages, version 20260216 */
|
/* Macros to install SAS packages, version 20260411 */
|
||||||
/* 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
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
, mirror = 0 /* indicates which location for package source should be used */
|
, mirror = 0 /* indicates which location for package source should be used */
|
||||||
, version = /* indicates which version of a package to install */
|
, version = /* indicates which version of a package to install */
|
||||||
, replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */
|
, replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */
|
||||||
|
, backup = 0 /* 1 = before replacing make a copy if the package already exist, 0 = do nothing */
|
||||||
, URLuser = /* user name for the password protected URLs */
|
, URLuser = /* user name for the password protected URLs */
|
||||||
, URLpass = /* password for the password protected URLs */
|
, URLpass = /* password for the password protected URLs */
|
||||||
, URLoptions = /* options for the `sourcePath` URLs */
|
, URLoptions = /* options for the `sourcePath` URLs */
|
||||||
@@ -22,11 +23,14 @@
|
|||||||
default is 0 - means No, 1 means Yes */
|
default is 0 - means No, 1 means Yes */
|
||||||
, SFRCVN = /* name of a macro variable to store success-failure return code value */
|
, SFRCVN = /* name of a macro variable to store success-failure return code value */
|
||||||
, github = /* name of a user or an organization in GitHub, all characters except [A-z0-9_.-] are compressed */
|
, github = /* name of a user or an organization in GitHub, all characters except [A-z0-9_.-] are compressed */
|
||||||
|
, githubRepo = %sysfunc(lowcase(&packageName.)) /* repo name to be used, by default it is the package name, but can be altered */
|
||||||
|
, githubToken = /* user's github fine-grained personal access token */
|
||||||
|
, githubTokenDebug = 0 /* debug values: 0,1,2,3 */
|
||||||
)
|
)
|
||||||
/secure
|
/secure
|
||||||
minoperator
|
minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to install SAS package, version 20260216. Run %%installPackage() for help info.'
|
des = 'Macro to install SAS package, version 20260411. Run %%installPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -41,7 +45,7 @@ des = 'Macro to install SAS package, version 20260216. 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 `20260216` #;
|
%put # Macro to install SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -90,8 +94,15 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put # When there are multiple packages to install the `version` variable #;
|
%put # When there are multiple packages to install the `version` variable #;
|
||||||
%put # is scan sequentially. #;
|
%put # is scan sequentially. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # - `replace=` With default value of `1`, it causes existing package file 0 #;
|
%put # - `replace=` When set to `1` and a package file exists, it forces the package #;
|
||||||
%put # to be replaced by new downloaded file. #;
|
%put # file replacement by the new downloaded file. #;
|
||||||
|
%put # It is a binary indicator ('0' or '1'). Default value is `1`. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `backup=` When set to `1` and a package file exists, it creates a backup copy #;
|
||||||
|
%put # of the package file. The backup copy is created with a suffix of the #;
|
||||||
|
%put # following format: `_BCKP_yyyymmddJJMMSS`. #;
|
||||||
|
%put # If `replace=0` then `backup` is set to `0`. #;
|
||||||
|
%put # It is a binary indicator ('0' or '1'). Default value is `0`. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # - `URLuser=` A user name for the password protected URLs, no quotes needed. #;
|
%put # - `URLuser=` A user name for the password protected URLs, no quotes needed. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
@@ -119,9 +130,27 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put # #;
|
%put # #;
|
||||||
%put # - `github=` *Optional.* A name of a user or an organization in GitHub. #;
|
%put # - `github=` *Optional.* A name of a user or an organization in GitHub. #;
|
||||||
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
||||||
%put # `https://github.com/<github>/<packagename>/raw/.../` #;
|
%put # `https://github.com/<github>/<githubRepo>/raw/.../` #;
|
||||||
%put # All characters except `[A-z0-9_.-]` are compressed. #;
|
%put # All characters except `[A-z0-9_.-]` are compressed. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
|
%put # - `githubRepo=` *Optional.* A name of a repository in GitHub. #;
|
||||||
|
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
||||||
|
%put # `https://github.com/<github>/<githubRepo>/raw/.../` #;
|
||||||
|
%put # By default lowercase name of installed package is used. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `githubToken=` *Optional.* A fine-grained personal access token for GitHub. #;
|
||||||
|
%put # When the value is non-missing it triggers GitHub API access to #;
|
||||||
|
%put # private repositories. Of course the token used has to be configured #;
|
||||||
|
%put # properly for the access. #;
|
||||||
|
%put # Read GitHub documentation to learn how to create and setup your token: #;
|
||||||
|
%put # `https://docs.github.com/en/authentication/ #;
|
||||||
|
%put # keeping-your-account-and-data-secure/ #;
|
||||||
|
%put # managing-your-personal-access-tokens #;
|
||||||
|
%put # #creating-a-fine-grained-personal-access-token` #;
|
||||||
|
%put # (lines break added for easier reading) #;
|
||||||
|
%put # Public repos do not need authentication. #;
|
||||||
|
%put # [NOTE!] This feature is experimental in this release. #;
|
||||||
|
%put # #;
|
||||||
%put #--------------------------------------------------------------------------------------------#;
|
%put #--------------------------------------------------------------------------------------------#;
|
||||||
%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` #;
|
||||||
@@ -200,9 +229,13 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
|
|
||||||
%let loadAddCnt = %sysevalf(NOT(0=%superq(loadAddCnt)));
|
%let loadAddCnt = %sysevalf(NOT(0=%superq(loadAddCnt)));
|
||||||
%let instDoc = %sysevalf(NOT(0=%superq(instDoc)));
|
%let instDoc = %sysevalf(NOT(0=%superq(instDoc)));
|
||||||
|
%let backup = %sysevalf(NOT(0=%superq(backup)));
|
||||||
|
|
||||||
%let replace = %sysevalf(1=%superq(replace));
|
%let replace = %sysevalf(1=%superq(replace));
|
||||||
|
|
||||||
|
/* in case you do not replace then you also do not do a backup */
|
||||||
|
%if 0=&replace. %then %let backup = 0;
|
||||||
|
|
||||||
%if %superq(sourcePath)= %then
|
%if %superq(sourcePath)= %then
|
||||||
%do;
|
%do;
|
||||||
%local SPFinitMirror SPFinitMirrorMD;
|
%local SPFinitMirror SPFinitMirrorMD;
|
||||||
@@ -259,7 +292,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%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;
|
||||||
/* ingnore version support for pharmaForest for now */
|
/* ingnore version support for github for now */
|
||||||
%let github = %sysfunc(compress(%superq(github),%str(,.-),KAD));
|
%let github = %sysfunc(compress(%superq(github),%str(,.-),KAD));
|
||||||
%put INFO: GitHub location used is: %superq(github).;
|
%put INFO: GitHub location used is: %superq(github).;
|
||||||
%let sourcePath = https://github.com/&github./; /*users content*/
|
%let sourcePath = https://github.com/&github./; /*users content*/
|
||||||
@@ -321,13 +354,16 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put ### &packageName.(&vers.) ###;
|
%put ### &packageName.(&vers.) ###;
|
||||||
|
|
||||||
%put *** %sysfunc(lowcase(&packageName.)) start *****************************************;
|
%put *** %sysfunc(lowcase(&packageName.)) start *****************************************;
|
||||||
%local in out inMD outMD _IOFileref_;
|
%local in out inMD outMD bckp_ref bckplabel _IOFileref_;
|
||||||
data _null_; call symputX("_IOFileref_", put(MD5(lowcase("&packageName.")), hex7. -L), "L"); run;
|
data _null_; call symputX("_IOFileref_", put(MD5(lowcase("&packageName.")), hex7. -L), "L"); run;
|
||||||
%let in = i&_IOFileref_.;
|
%let in = i&_IOFileref_.;
|
||||||
%let out = o&_IOFileref_.;
|
%let out = o&_IOFileref_.;
|
||||||
%let inMD = j&_IOFileref_.;
|
%let inMD = j&_IOFileref_.;
|
||||||
%let outMD = u&_IOFileref_.;
|
%let outMD = u&_IOFileref_.;
|
||||||
|
|
||||||
|
%let bckp_ref = b&_IOFileref_.;
|
||||||
|
%let bckplabel = _BCKP_%sysfunc(compress(%sysfunc(datetime(),b8601dt.),,KD));
|
||||||
|
|
||||||
/* %let in = i%sysfunc(md5(&packageName.),hex7.); */
|
/* %let in = i%sysfunc(md5(&packageName.),hex7.); */
|
||||||
/* %let out = o%sysfunc(md5(&packageName.),hex7.); */
|
/* %let out = o%sysfunc(md5(&packageName.),hex7.); */
|
||||||
|
|
||||||
@@ -340,7 +376,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.sas;
|
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.sas;
|
||||||
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.md;
|
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.md;
|
||||||
%end;
|
%end;
|
||||||
%if %superq(mirror) > 1 %then
|
%if NOT (%superq(mirror) in (0 1 4)) %then
|
||||||
%put %str( )Mirror %superq(mirror) does not support versioning.;
|
%put %str( )Mirror %superq(mirror) does not support versioning.;
|
||||||
|
|
||||||
/* source code file */
|
/* source code file */
|
||||||
@@ -363,12 +399,12 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%do;
|
%do;
|
||||||
%if %superq(mirror) IN (0 3 4) %then /* SASPAC or PharmaForest or an arbitrary GitHub repo */
|
%if %superq(mirror) IN (0 3 4) %then /* SASPAC or PharmaForest or an arbitrary GitHub repo */
|
||||||
%do;
|
%do;
|
||||||
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
|
%let packageSubDir = &githubRepo./raw/main/;
|
||||||
|
|
||||||
%if %superq(vers) ne %then
|
%if %superq(vers) ne %then
|
||||||
%do;
|
%do;
|
||||||
/*%let packageSubDir = %sysfunc(lowcase(&packageName.))/main/hist/&version./;*/
|
/*%let packageSubDir = %sysfunc(lowcase(&packageName.))/main/hist/&version./;*/
|
||||||
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/&vers./;
|
%let packageSubDir = &githubRepo./raw/&vers./;
|
||||||
%end;
|
%end;
|
||||||
%end;
|
%end;
|
||||||
%else
|
%else
|
||||||
@@ -405,6 +441,13 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
/* copy the file byte-by-byte */
|
/* copy the file byte-by-byte */
|
||||||
%local installationRC;
|
%local installationRC;
|
||||||
%let installationRC=1;
|
%let installationRC=1;
|
||||||
|
|
||||||
|
%if (%superq(githubToken)= )
|
||||||
|
OR
|
||||||
|
(%upcase(&packageName.) in (SPFINIT SASPACKAGEFRAMEWORK SASPACKAGESFRAMEWORK))
|
||||||
|
%then
|
||||||
|
%do;
|
||||||
|
/* public repo, location with URL access, or SPFinit */
|
||||||
data _null_;
|
data _null_;
|
||||||
length filein fileinMD 8
|
length filein fileinMD 8
|
||||||
out_path in_path out_pathMD in_pathMD rcTXT $ 4096
|
out_path in_path out_pathMD in_pathMD rcTXT $ 4096
|
||||||
@@ -451,12 +494,34 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
do;
|
do;
|
||||||
if symgetn("replace")=1 then
|
if symgetn("replace")=1 then
|
||||||
do;
|
do;
|
||||||
|
rc = 0;
|
||||||
put @2 "The following file will be replaced during "
|
put @2 "The following file will be replaced during "
|
||||||
/ @2 "installation of the &packageName. package: "
|
/ @2 "installation of the &packageName. package: "
|
||||||
/ @5 out_path;
|
/ @5 out_path;
|
||||||
rc = FDELETE(out_ref);
|
|
||||||
rc = FCOPY(in_ref, out_ref);
|
/* backup package file */
|
||||||
|
if symgetn("backup")=1 then
|
||||||
|
do;
|
||||||
|
length bckp_ref $ 8 bckplabel $ 32;
|
||||||
|
bckplabel = "&bckplabel.";
|
||||||
|
rc = filename(bckp_ref, cats(out_path, bckplabel), "DISK", "recfm=N lrecl=1");
|
||||||
|
put / @2 "The following backup file will be created:"
|
||||||
|
/ @5 out_path +(-1) bckplabel;
|
||||||
|
rc + FCOPY(out_ref, bckp_ref);
|
||||||
rcTXT=sysmsg();
|
rcTXT=sysmsg();
|
||||||
|
if rc then put "WARNING: [&packageName.] Backup failed... ";
|
||||||
|
_N_ = filename(bckp_ref);
|
||||||
|
end;
|
||||||
|
|
||||||
|
/* replace package file */
|
||||||
|
if rc=0 then
|
||||||
|
do;
|
||||||
|
rc + FDELETE(out_ref);
|
||||||
|
if 0=rc then
|
||||||
|
rc + FCOPY(in_ref, out_ref);
|
||||||
|
rcTXT=sysmsg();
|
||||||
|
if rc then put "WARNING: [&packageName.] Installation failed... ";
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
else
|
else
|
||||||
do;
|
do;
|
||||||
@@ -484,6 +549,9 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
end;
|
end;
|
||||||
else if 1=FEXIST(out_refMD) and 1=symgetn("replace") then
|
else if 1=FEXIST(out_refMD) and 1=symgetn("replace") then
|
||||||
do;
|
do;
|
||||||
|
if symgetn("backup")=1 then
|
||||||
|
put @2 "No backup done for documentation file.";
|
||||||
|
|
||||||
rcMD = FDELETE(out_refMD);
|
rcMD = FDELETE(out_refMD);
|
||||||
if rcMD=0 then
|
if rcMD=0 then
|
||||||
rcMD2 = FCOPY(in_refMD, out_refMD);
|
rcMD2 = FCOPY(in_refMD, out_refMD);
|
||||||
@@ -495,6 +563,160 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
put @2 "Package documentation in markdown format not available." ; /* / out_pathMD / in_pathMD;*/
|
put @2 "Package documentation in markdown format not available." ; /* / out_pathMD / in_pathMD;*/
|
||||||
end;
|
end;
|
||||||
run;
|
run;
|
||||||
|
/************************************************************************************************************/
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
/* when githubToken= is not null then a "private repo" case is assumed */
|
||||||
|
/* except for SPFinit.sas that is always installed from SAS_PACKAGES public repo */
|
||||||
|
|
||||||
|
%put [NOTE!] This feature is experimental in this release!;
|
||||||
|
%local ref notRunHTTP;
|
||||||
|
%let notRunHTTP=1;
|
||||||
|
%if %superq(vers)= %then %let ref = main;
|
||||||
|
%else %let ref = &vers.;
|
||||||
|
|
||||||
|
%if NOT(%superq(githubTokenDebug) in (0 1 2 3)) %then %let githubTokenDebug = 0;
|
||||||
|
|
||||||
|
%if %sysfunc(FEXIST(&out.)) = 0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )Installing the &packageName. package;
|
||||||
|
%put %str( )in the &firstPackagesPath. directory.;
|
||||||
|
%let notRunHTTP=0;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%if 1=&replace. %then
|
||||||
|
%do;
|
||||||
|
%put %str( )The following file will be replaced during;
|
||||||
|
%put %str( )installation of the &packageName. package:;
|
||||||
|
%put %str( )%sysfunc(pathname(&out.));
|
||||||
|
|
||||||
|
/* backup package file */
|
||||||
|
%if 1=&backup. %then
|
||||||
|
%do;
|
||||||
|
filename &bckp_ref. "&firstPackagesPath./%sysfunc(lowcase(&packageName.)).zip&bckplabel." recfm=N lrecl=1;
|
||||||
|
|
||||||
|
%put %str( )The following backup file will be created:;
|
||||||
|
%put %str( )%sysfunc(pathname(&bckp_ref.));
|
||||||
|
|
||||||
|
%let notRunHTTP = %sysfunc(FCOPY(&out., &bckp_ref.));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
|
||||||
|
filename &bckp_ref. clear;
|
||||||
|
|
||||||
|
%let notRunHTTP = %sysevalf(¬RunHTTP. + %sysfunc(FDELETE(&out.)));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let notRunHTTP = %sysfunc(FDELETE(&out.));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%put %str( )The following file will NOT be replaced:;
|
||||||
|
%put %str( )%sysfunc(pathname(&out.));
|
||||||
|
%let notRunHTTP = 1;
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if %superq(githubToken) NE %qsysfunc(compress(%superq(githubToken),%str( _),KAD)) %then
|
||||||
|
%do;
|
||||||
|
%put WARNING: The githubToken= parameter contains illegal symbols;
|
||||||
|
%put WARNING- Allowed symbols are letters A to Z and a to z, digits 0 to 9, and underscore(_);
|
||||||
|
%put WARNING- Verify your token. Installation aborted.;
|
||||||
|
%let notRunHTTP = 1;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if ¬RunHTTP.=0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )URL called by PROC HTTP is:;
|
||||||
|
%put %str( )"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).zip?ref=&ref.";
|
||||||
|
%put %str( )Headers:;
|
||||||
|
%put %str( )Accept=application/vnd.github.raw+json;
|
||||||
|
%put %str( )X-GitHub-Api-Version=2026-03-10;
|
||||||
|
%put %str( )Authorization=Bearer *****************;
|
||||||
|
%put %str( );
|
||||||
|
|
||||||
|
|
||||||
|
/* proc http setup based on:
|
||||||
|
https://docs.github.com/en/rest/repos/contents?apiVersion=2026-03-10#get-repository-content
|
||||||
|
*/
|
||||||
|
proc http
|
||||||
|
method="GET"
|
||||||
|
out=&out.
|
||||||
|
URL=
|
||||||
|
"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).zip?ref=&ref."
|
||||||
|
CLEAR_CACHE
|
||||||
|
;
|
||||||
|
headers
|
||||||
|
"Accept"="application/vnd.github.raw+json"
|
||||||
|
"X-GitHub-Api-Version"="2026-03-10"
|
||||||
|
"Authorization"="Bearer &githubToken."
|
||||||
|
;
|
||||||
|
debug level=&githubTokenDebug.;
|
||||||
|
run;
|
||||||
|
|
||||||
|
%if %sysfunc(FEXIST(&out.)) AND &SYS_PROCHTTP_STATUS_CODE.=200 %then
|
||||||
|
%do;
|
||||||
|
%let installationRC=0;
|
||||||
|
%put %str( )Done with return code rc=0 (zero = success);
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let installationRC=1;
|
||||||
|
%put %str( )Done with return code rc=&SYS_PROCHTTP_STATUS_CODE. (zero = success);
|
||||||
|
%put %str( )Message: &SYS_PROCHTTP_STATUS_PHRASE.;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%let notRunHTTP=1;
|
||||||
|
%if 1=&instDoc. AND 0=&installationRC. %then
|
||||||
|
%do;
|
||||||
|
%if %sysfunc(FEXIST(&outMD.)) = 0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )Package documentation installation on request:;
|
||||||
|
%let notRunHTTP = 0;
|
||||||
|
%end;
|
||||||
|
%else %if 1=&replace. %then
|
||||||
|
%do;
|
||||||
|
%if 1=&backup. %then %put %str( )No backup done for documentation file.;
|
||||||
|
%put %str( )Package documentation installation on demand:;
|
||||||
|
%let notRunHTTP = %sysfunc(FDELETE(&outMD.));
|
||||||
|
%if ¬RunHTTP. %then %put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if ¬RunHTTP.=0 %then
|
||||||
|
%do;
|
||||||
|
proc http
|
||||||
|
method="GET"
|
||||||
|
out=&outMD.
|
||||||
|
URL=
|
||||||
|
"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).md?ref=&ref."
|
||||||
|
CLEAR_CACHE
|
||||||
|
;
|
||||||
|
headers
|
||||||
|
"Accept"="application/vnd.github.raw+json"
|
||||||
|
"X-GitHub-Api-Version"="2026-03-10"
|
||||||
|
"Authorization"="Bearer &githubToken."
|
||||||
|
;
|
||||||
|
debug level=&githubTokenDebug.;
|
||||||
|
run;
|
||||||
|
%if %sysfunc(FEXIST(&outMD.)) AND &SYS_PROCHTTP_STATUS_CODE.=200
|
||||||
|
%then %put %str( )status successful!;
|
||||||
|
%else %put %str( )status unsuccessful!;
|
||||||
|
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let installationRC=1;
|
||||||
|
%put %str( )Done with return code rc=1 (zero = success);
|
||||||
|
%end;
|
||||||
|
/************************************************************************************************************/
|
||||||
|
%end;
|
||||||
|
|
||||||
filename &in. clear;
|
filename &in. clear;
|
||||||
filename &out. clear;
|
filename &out. clear;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
vERRb /* indicates if macro should be verbose and report errors */
|
vERRb /* indicates if macro should be verbose and report errors */
|
||||||
)
|
)
|
||||||
/ minoperator PARMBUFF
|
/ minoperator PARMBUFF
|
||||||
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260216.'
|
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260411.'
|
||||||
;
|
;
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
||||||
@@ -20,7 +20,7 @@ des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFile
|
|||||||
%put ### This is short help information for the `isPackagesFilerefOK` macro #;
|
%put ### This is short help information for the `isPackagesFilerefOK` macro #;
|
||||||
%put #-----------------------------------------------------------------------------------------#;;
|
%put #-----------------------------------------------------------------------------------------#;;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to check if the `packages` fileref is "correct", version `20260216` #;
|
%put # Macro to check if the `packages` fileref is "correct", version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Macro to list SAS packages in packages folder.
|
Macro to list SAS packages in packages folder.
|
||||||
|
|
||||||
Version 20260216
|
Version 20260411
|
||||||
|
|
||||||
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
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
listDataSet /* Name of a data set to save results */
|
listDataSet /* Name of a data set to save results */
|
||||||
, quiet = 0 /* Indicate if results should be printed in log */
|
, quiet = 0 /* Indicate if results should be printed in log */
|
||||||
)/secure parmbuff
|
)/secure parmbuff
|
||||||
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260216.'
|
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260411.'
|
||||||
;
|
;
|
||||||
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -40,7 +40,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 `20260216` #;
|
%put # Macro to list available SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load SAS package, version 20260216. Run %loadPackage() for help info.'
|
des = 'Macro to load SAS package, version 20260411. 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 `20260216` #;
|
%put # Macro to *load* SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -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 20260216. Run %loadPackageAddCnt() for help info.'
|
des = 'Macro to load additional content for a SAS package, version 20260411. 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 `20260216` #;
|
%put # Macro to *load* additional content for a SAS package, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load multiple SAS packages at one run, version 20260216. Run %loadPackages() for help info.'
|
des = 'Macro to load multiple SAS packages at one run, version 20260411. 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 `20260216` #;
|
%put # Macro wrapper for the loadPackage macro, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to preview content of a SAS package, version 20260216. Run %previewPackage() for help info.'
|
des = 'Macro to preview content of a SAS package, version 20260411. 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 20260216. 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 `20260216` #;
|
%put # Macro to get preview of a SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
,psMAX=MAX /* pageSise in case executed inside DoSubL() */
|
,psMAX=MAX /* pageSise in case executed inside DoSubL() */
|
||||||
,ods= /* a data set for results, e.g., work.relocatePackageReport */
|
,ods= /* a data set for results, e.g., work.relocatePackageReport */
|
||||||
)
|
)
|
||||||
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260216. Run %relocatePackage() for help info.'
|
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260411. Run %relocatePackage() for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
%put ### This is short help information for the `relocatePackage` macro #;
|
%put ### This is short help information for the `relocatePackage` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260216` #;
|
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ SPFmacroName /* space separated list of names */
|
|||||||
/
|
/
|
||||||
minoperator
|
minoperator
|
||||||
secure
|
secure
|
||||||
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260216. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260411. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
||||||
;
|
;
|
||||||
%local list N i element;
|
%local list N i element;
|
||||||
%let list=
|
%let list=
|
||||||
@@ -51,7 +51,7 @@ SasPackagesFrameworkNotes
|
|||||||
%put ### This is short help information for the `SasPackagesFrameworkNotes` macro #;
|
%put ### This is short help information for the `SasPackagesFrameworkNotes` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro prints help notes for SAS Packages Framework macros, version `20260216` #;
|
%put # Macro prints help notes for SAS Packages Framework macros, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*+SPFint_gnPckg_arch+*/
|
/*+SPFint_gnPckg_arch+*/
|
||||||
%macro SPFint_gnPckg_arch()/secure minoperator
|
%macro SPFint_gnPckg_arch()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*+SPFint_gnPckg_markdown+*/
|
/*+SPFint_gnPckg_markdown+*/
|
||||||
%macro SPFint_gnPckg_markdown()/secure minoperator
|
%macro SPFint_gnPckg_markdown()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -112,7 +112,7 @@ data &filesWithCodes.markdown;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put " " / "---------------------------------------------------------------------" / " "
|
put " " / "---------------------------------------------------------------------" / " "
|
||||||
/ "*SAS package generated by SAS Package Framework, version `20260216`,*"
|
/ "*SAS package generated by SAS Package Framework, version `20260411`,*"
|
||||||
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
||||||
/ "*using SAS release: `&sysvlong4.`.*"
|
/ "*using SAS release: `&sysvlong4.`.*"
|
||||||
/ " " / "---------------------------------------------------------------------" / " ";
|
/ " " / "---------------------------------------------------------------------" / " ";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*+SPFint_gnPckg_tests+*/
|
/*+SPFint_gnPckg_tests+*/
|
||||||
%macro SPFint_gnPckg_tests()/secure minoperator
|
%macro SPFint_gnPckg_tests()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
,nobs=0 /* technical parameter */
|
,nobs=0 /* technical parameter */
|
||||||
)
|
)
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260216. Run %splitCodeForPackage() for help info.'
|
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260411. Run %splitCodeForPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -24,7 +24,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 `20260216` #;
|
%put # files with separate snippets, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -400,7 +400,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 20260216. */';
|
put '/* File generated with help of SAS Packages Framework, version 20260411. */';
|
||||||
firstLine[j]=0;
|
firstLine[j]=0;
|
||||||
end;
|
end;
|
||||||
put _infile_;
|
put _infile_;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
,ods= /* data set for report file */
|
,ods= /* data set for report file */
|
||||||
,verify=0
|
,verify=0
|
||||||
)/
|
)/
|
||||||
des='Macro to extract a bundle of SAS packages, version 20260216. Run %unbundlePackages(HELP) for help info.'
|
des='Macro to extract a bundle of SAS packages, version 20260411. Run %unbundlePackages(HELP) for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -26,7 +26,7 @@ minoperator
|
|||||||
%put ### This is short help information for the `unbundlePackages` macro #;
|
%put ### This is short help information for the `unbundlePackages` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *extract* SAS packages from a bundle, version `20260216` #;
|
%put # Macro to *extract* SAS packages from a bundle, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to unload SAS package, version 20260216. Run %unloadPackage() for help info.'
|
des = 'Macro to unload SAS package, version 20260411. 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 20260216. 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 `20260216` #;
|
%put # Macro to unload SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -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 20260216. Run %verifyPackage() for help info.'
|
des = 'Macro to verify SAS package with the hash digest, version 20260411. 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 20260216. 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 `20260216` #;
|
%put # Macro to verify SAS package with it hash digest, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# SAS Packages Framework, version `20260216`
|
# SAS Packages Framework, version `20260411`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ A **SAS package** is an automatically generated, single, stand alone *zip* file
|
|||||||
|
|
||||||
The *purpose of a package* is to be a simple, and easy to access, code sharing medium, which will allow: on the one hand, to separate the code complex dependencies created by the developer from the user experience with the final product and, on the other hand, reduce developer's and user's unnecessary frustration related to a remote deployment process.
|
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 **`20260216`**.
|
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20260411`**.
|
||||||
|
|
||||||
**To get started with SAS Packages** try this [**`Introduction to SAS Packages`**](https://youtube.com/playlist?list=PLeMzGEImIT5eV13IGXQIgWmTFCJt_cLZG&si=ElQm0_ifq76mvUbq "Introduction to SAS Packages video series") video series or [**`Getting Started with SAS Packages`**](https://github.com/yabwon/SAS_PACKAGES/blob/main/SPF/Documentation/Getting_Started_with_SAS_Packages.pdf "Getting Started with SAS Packages") presentation (see the `./SPF/Documentation` directory).
|
**To get started with SAS Packages** try this [**`Introduction to SAS Packages`**](https://youtube.com/playlist?list=PLeMzGEImIT5eV13IGXQIgWmTFCJt_cLZG&si=ElQm0_ifq76mvUbq "Introduction to SAS Packages video series") video series or [**`Getting Started with SAS Packages`**](https://github.com/yabwon/SAS_PACKAGES/blob/main/SPF/Documentation/Getting_Started_with_SAS_Packages.pdf "Getting Started with SAS Packages") presentation (see the `./SPF/Documentation` directory).
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
|
|||||||
## This is short help information for the `installPackage` macro <a name="installpackage"></a>
|
## This is short help information for the `installPackage` macro <a name="installpackage"></a>
|
||||||
--------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to install SAS packages, version `20260216`
|
Macro to install SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -105,8 +105,15 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
|
|||||||
When there are multiple packages to install version variable
|
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=` When set to `1` and a package file exists, it forces the package
|
||||||
to be replaced by new downloaded file.
|
file replacement by the new downloaded file.
|
||||||
|
It is a binary indicator ('0' or '1'). Default value is `1`.
|
||||||
|
|
||||||
|
- `backup=` When set to `1` and a package file exists, it creates a backup copy
|
||||||
|
of the package file. The backup copy is created with a suffix of the
|
||||||
|
following format: `_BCKP_yyyymmddJJMMSS`.
|
||||||
|
If `replace=0` then `backup` is set to `0`.
|
||||||
|
It is a binary indicator ('0' or '1'). Default value is `0`.
|
||||||
|
|
||||||
- `URLuser=` A user name for the password protected URLs, no quotes needed.
|
- `URLuser=` A user name for the password protected URLs, no quotes needed.
|
||||||
|
|
||||||
@@ -137,6 +144,24 @@ them using the SPF can be found [**HERE**](https://github.com/yabwon/HoW-SASPack
|
|||||||
`https://github.com/<github>/<packagename>/raw/.../`
|
`https://github.com/<github>/<packagename>/raw/.../`
|
||||||
All characters except `[A-z0-9_.-]` are compressed.
|
All characters except `[A-z0-9_.-]` are compressed.
|
||||||
|
|
||||||
|
- `githubRepo=` *Optional.* A name of a repository in GitHub.
|
||||||
|
Allows an easy set of the search path for packages available on GitHub:
|
||||||
|
`https://github.com/<github>/<githubRepo>/raw/.../`
|
||||||
|
By default lowercase name of installed package is used.
|
||||||
|
|
||||||
|
- `githubToken=` *Optional.* A fine-grained personal access token for GitHub.
|
||||||
|
When the value is non-missing it triggers GitHub API access to
|
||||||
|
private repositories. Of course the token used has to be configured
|
||||||
|
properly for the access.
|
||||||
|
Read GitHub documentation to learn how to create and setup your token:
|
||||||
|
`https://docs.github.com/en/authentication/`
|
||||||
|
`keeping-your-account-and-data-secure/`
|
||||||
|
`managing-your-personal-access-tokens`
|
||||||
|
`#creating-a-fine-grained-personal-access-token`
|
||||||
|
(lines break added for easier reading)
|
||||||
|
Public repos do not need authentication.
|
||||||
|
[NOTE!] This feature is experimental in this release.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
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.
|
||||||
@@ -185,7 +210,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 `20260216`
|
Macro to get help about SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -263,7 +288,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `loadPackage` macro <a name="loadpackage"></a>
|
## This is short help information for the `loadPackage` macro <a name="loadpackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to *load* SAS packages, version `20260216`
|
Macro to *load* SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -421,7 +446,7 @@ If created, those macros are automatically deleted when the `%unloadPackage()` m
|
|||||||
## This is short help information for the `loadPackageS` macro <a name="loadpackages"></a>
|
## This is short help information for the `loadPackageS` macro <a name="loadpackages"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro wrapper for the loadPackage macro, version `20260216`
|
Macro wrapper for the loadPackage macro, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -472,7 +497,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `unloadPackage` macro <a name="unloadpackage"></a>
|
## This is short help information for the `unloadPackage` macro <a name="unloadpackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to unload SAS packages, version `20260216`
|
Macro to unload SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -539,7 +564,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `listPackages` macro <a name="listpackages"></a>
|
## This is short help information for the `listPackages` macro <a name="listpackages"></a>
|
||||||
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to list available SAS packages, version `20260216`
|
Macro to list available SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -588,7 +613,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `verifyPackage` macro <a name="verifypackage"></a>
|
## This is short help information for the `verifyPackage` macro <a name="verifypackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to verify SAS package with it hash digest, version `20260216`
|
Macro to verify SAS package with it hash digest, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -644,7 +669,7 @@ filename packages "C:/SAS_PACKAGES"; %* set-up a directory for packages;
|
|||||||
## This is short help information for the `previewPackage` macro <a name="previewpackage"></a>
|
## This is short help information for the `previewPackage` macro <a name="previewpackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to get preview of a SAS packages, version `20260216`
|
Macro to get preview of a SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -713,7 +738,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `generatePackage` macro <a name="generatepackage"></a>
|
## This is short help information for the `generatePackage` macro <a name="generatepackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to generate SAS packages, version `20260216`
|
Macro to generate SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -946,7 +971,7 @@ All files have to have `.sas` extension. Other files are ignored.
|
|||||||
## This is short help information for the `extendPackagesFileref` macro <a name="extendpackagesfileref"></a>
|
## This is short help information for the `extendPackagesFileref` macro <a name="extendpackagesfileref"></a>
|
||||||
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to list directories pointed by 'packages' fileref, version `20260216`
|
Macro to list directories pointed by 'packages' fileref, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -988,7 +1013,7 @@ filename packages ("D:/NEW_DIR" %extendPackagesFileref()); %* add new directory;
|
|||||||
## This is short help information for the `loadPackageAddCnt` macro <a name="loadpackageaddcnt"></a>
|
## This is short help information for the `loadPackageAddCnt` macro <a name="loadpackageaddcnt"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to load *additional content* for a SAS package, version `20260216`
|
Macro to load *additional content* for a SAS package, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1082,7 +1107,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Utility macro to *split* single file with SAS package code into multiple
|
Utility macro to *split* single file with SAS package code into multiple
|
||||||
files with separate snippets, version `20260216`
|
files with separate snippets, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1163,7 +1188,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `relocatePackage` macro <a name="relocatepackage"></a>
|
## This is short help information for the `relocatePackage` macro <a name="relocatepackage"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to *locally copy or move* (relocate) SAS packages, version `20260216`
|
Macro to *locally copy or move* (relocate) SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1275,7 +1300,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `isPackagesFilerefOK` macro <a name="ispackagesfilerefok"></a>
|
## This is short help information for the `isPackagesFilerefOK` macro <a name="ispackagesfilerefok"></a>
|
||||||
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to check if the `packages` fileref is "correct", version `20260216`
|
Macro to check if the `packages` fileref is "correct", version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1326,7 +1351,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `SasPackagesFrameworkNotes` macro <a name="saspackagesframeworknotes"></a>
|
## This is short help information for the `SasPackagesFrameworkNotes` macro <a name="saspackagesframeworknotes"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro prints help notes for SAS Packages Framework macros, version `20260216`
|
Macro prints help notes for SAS Packages Framework macros, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1376,7 +1401,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `bundlePackages` macro <a name="bundlepackages"></a>
|
## This is short help information for the `bundlePackages` macro <a name="bundlepackages"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to *create bundles* of SAS packages, version `20260216`
|
Macro to *create bundles* of SAS packages, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
@@ -1445,7 +1470,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
## This is short help information for the `unbundlePackages` macro <a name="unbundlepackages"></a>
|
## This is short help information for the `unbundlePackages` macro <a name="unbundlepackages"></a>
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Macro to *extract* SAS packages from a bundle, version `20260216`
|
Macro to *extract* SAS packages from a bundle, version `20260411`
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
336
SPF/SPFinit.sas
336
SPF/SPFinit.sas
@@ -43,7 +43,7 @@
|
|||||||
- to unload, or
|
- to unload, or
|
||||||
- to generate SAS packages.
|
- to generate SAS packages.
|
||||||
|
|
||||||
Version 20260216.
|
Version 20260411.
|
||||||
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
|
||||||
@@ -101,7 +101,7 @@ Contributors:
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load SAS package, version 20260216. Run %loadPackage() for help info.'
|
des = 'Macro to load SAS package, version 20260411. Run %loadPackage() for help info.'
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
@@ -117,7 +117,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 `20260216` #;
|
%put # Macro to *load* SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -398,7 +398,7 @@ minoperator
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to unload SAS package, version 20260216. Run %unloadPackage() for help info.'
|
des = 'Macro to unload SAS package, version 20260411. Run %unloadPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -413,7 +413,7 @@ des = 'Macro to unload SAS package, version 20260216. 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 `20260216` #;
|
%put # Macro to unload SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -568,7 +568,7 @@ des = 'Macro to unload SAS package, version 20260216. Run %unloadPackage() for h
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to get help about SAS package, version 20260216. Run %helpPackage() for help info.'
|
des = 'Macro to get help about SAS package, version 20260411. Run %helpPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -583,7 +583,7 @@ des = 'Macro to get help about SAS package, version 20260216. 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 `20260216` #;
|
%put # Macro to get help about SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -728,7 +728,7 @@ TODO:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*+installPackage+*/
|
/*+installPackage+*/
|
||||||
/* Macros to install SAS packages, version 20260216 */
|
/* Macros to install SAS packages, version 20260411 */
|
||||||
/* 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
|
||||||
@@ -742,6 +742,7 @@ TODO:
|
|||||||
, mirror = 0 /* indicates which location for package source should be used */
|
, mirror = 0 /* indicates which location for package source should be used */
|
||||||
, version = /* indicates which version of a package to install */
|
, version = /* indicates which version of a package to install */
|
||||||
, replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */
|
, replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */
|
||||||
|
, backup = 0 /* 1 = before replacing make a copy if the package already exist, 0 = do nothing */
|
||||||
, URLuser = /* user name for the password protected URLs */
|
, URLuser = /* user name for the password protected URLs */
|
||||||
, URLpass = /* password for the password protected URLs */
|
, URLpass = /* password for the password protected URLs */
|
||||||
, URLoptions = /* options for the `sourcePath` URLs */
|
, URLoptions = /* options for the `sourcePath` URLs */
|
||||||
@@ -751,11 +752,14 @@ TODO:
|
|||||||
default is 0 - means No, 1 means Yes */
|
default is 0 - means No, 1 means Yes */
|
||||||
, SFRCVN = /* name of a macro variable to store success-failure return code value */
|
, SFRCVN = /* name of a macro variable to store success-failure return code value */
|
||||||
, github = /* name of a user or an organization in GitHub, all characters except [A-z0-9_.-] are compressed */
|
, github = /* name of a user or an organization in GitHub, all characters except [A-z0-9_.-] are compressed */
|
||||||
|
, githubRepo = %sysfunc(lowcase(&packageName.)) /* repo name to be used, by default it is the package name, but can be altered */
|
||||||
|
, githubToken = /* user's github fine-grained personal access token */
|
||||||
|
, githubTokenDebug = 0 /* debug values: 0,1,2,3 */
|
||||||
)
|
)
|
||||||
/secure
|
/secure
|
||||||
minoperator
|
minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to install SAS package, version 20260216. Run %%installPackage() for help info.'
|
des = 'Macro to install SAS package, version 20260411. Run %%installPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -770,7 +774,7 @@ des = 'Macro to install SAS package, version 20260216. 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 `20260216` #;
|
%put # Macro to install SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -819,8 +823,15 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put # When there are multiple packages to install the `version` variable #;
|
%put # When there are multiple packages to install the `version` variable #;
|
||||||
%put # is scan sequentially. #;
|
%put # is scan sequentially. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # - `replace=` With default value of `1`, it causes existing package file 0 #;
|
%put # - `replace=` When set to `1` and a package file exists, it forces the package #;
|
||||||
%put # to be replaced by new downloaded file. #;
|
%put # file replacement by the new downloaded file. #;
|
||||||
|
%put # It is a binary indicator ('0' or '1'). Default value is `1`. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `backup=` When set to `1` and a package file exists, it creates a backup copy #;
|
||||||
|
%put # of the package file. The backup copy is created with a suffix of the #;
|
||||||
|
%put # following format: `_BCKP_yyyymmddJJMMSS`. #;
|
||||||
|
%put # If `replace=0` then `backup` is set to `0`. #;
|
||||||
|
%put # It is a binary indicator ('0' or '1'). Default value is `0`. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # - `URLuser=` A user name for the password protected URLs, no quotes needed. #;
|
%put # - `URLuser=` A user name for the password protected URLs, no quotes needed. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
@@ -848,9 +859,27 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put # #;
|
%put # #;
|
||||||
%put # - `github=` *Optional.* A name of a user or an organization in GitHub. #;
|
%put # - `github=` *Optional.* A name of a user or an organization in GitHub. #;
|
||||||
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
||||||
%put # `https://github.com/<github>/<packagename>/raw/.../` #;
|
%put # `https://github.com/<github>/<githubRepo>/raw/.../` #;
|
||||||
%put # All characters except `[A-z0-9_.-]` are compressed. #;
|
%put # All characters except `[A-z0-9_.-]` are compressed. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
|
%put # - `githubRepo=` *Optional.* A name of a repository in GitHub. #;
|
||||||
|
%put # Allows an easy set of the search path for packages available on GitHub: #;
|
||||||
|
%put # `https://github.com/<github>/<githubRepo>/raw/.../` #;
|
||||||
|
%put # By default lowercase name of installed package is used. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `githubToken=` *Optional.* A fine-grained personal access token for GitHub. #;
|
||||||
|
%put # When the value is non-missing it triggers GitHub API access to #;
|
||||||
|
%put # private repositories. Of course the token used has to be configured #;
|
||||||
|
%put # properly for the access. #;
|
||||||
|
%put # Read GitHub documentation to learn how to create and setup your token: #;
|
||||||
|
%put # `https://docs.github.com/en/authentication/ #;
|
||||||
|
%put # keeping-your-account-and-data-secure/ #;
|
||||||
|
%put # managing-your-personal-access-tokens #;
|
||||||
|
%put # #creating-a-fine-grained-personal-access-token` #;
|
||||||
|
%put # (lines break added for easier reading) #;
|
||||||
|
%put # Public repos do not need authentication. #;
|
||||||
|
%put # [NOTE!] This feature is experimental in this release. #;
|
||||||
|
%put # #;
|
||||||
%put #--------------------------------------------------------------------------------------------#;
|
%put #--------------------------------------------------------------------------------------------#;
|
||||||
%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` #;
|
||||||
@@ -929,9 +958,13 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
|
|
||||||
%let loadAddCnt = %sysevalf(NOT(0=%superq(loadAddCnt)));
|
%let loadAddCnt = %sysevalf(NOT(0=%superq(loadAddCnt)));
|
||||||
%let instDoc = %sysevalf(NOT(0=%superq(instDoc)));
|
%let instDoc = %sysevalf(NOT(0=%superq(instDoc)));
|
||||||
|
%let backup = %sysevalf(NOT(0=%superq(backup)));
|
||||||
|
|
||||||
%let replace = %sysevalf(1=%superq(replace));
|
%let replace = %sysevalf(1=%superq(replace));
|
||||||
|
|
||||||
|
/* in case you do not replace then you also do not do a backup */
|
||||||
|
%if 0=&replace. %then %let backup = 0;
|
||||||
|
|
||||||
%if %superq(sourcePath)= %then
|
%if %superq(sourcePath)= %then
|
||||||
%do;
|
%do;
|
||||||
%local SPFinitMirror SPFinitMirrorMD;
|
%local SPFinitMirror SPFinitMirrorMD;
|
||||||
@@ -988,7 +1021,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%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;
|
||||||
/* ingnore version support for pharmaForest for now */
|
/* ingnore version support for github for now */
|
||||||
%let github = %sysfunc(compress(%superq(github),%str(,.-),KAD));
|
%let github = %sysfunc(compress(%superq(github),%str(,.-),KAD));
|
||||||
%put INFO: GitHub location used is: %superq(github).;
|
%put INFO: GitHub location used is: %superq(github).;
|
||||||
%let sourcePath = https://github.com/&github./; /*users content*/
|
%let sourcePath = https://github.com/&github./; /*users content*/
|
||||||
@@ -1050,13 +1083,16 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%put ### &packageName.(&vers.) ###;
|
%put ### &packageName.(&vers.) ###;
|
||||||
|
|
||||||
%put *** %sysfunc(lowcase(&packageName.)) start *****************************************;
|
%put *** %sysfunc(lowcase(&packageName.)) start *****************************************;
|
||||||
%local in out inMD outMD _IOFileref_;
|
%local in out inMD outMD bckp_ref bckplabel _IOFileref_;
|
||||||
data _null_; call symputX("_IOFileref_", put(MD5(lowcase("&packageName.")), hex7. -L), "L"); run;
|
data _null_; call symputX("_IOFileref_", put(MD5(lowcase("&packageName.")), hex7. -L), "L"); run;
|
||||||
%let in = i&_IOFileref_.;
|
%let in = i&_IOFileref_.;
|
||||||
%let out = o&_IOFileref_.;
|
%let out = o&_IOFileref_.;
|
||||||
%let inMD = j&_IOFileref_.;
|
%let inMD = j&_IOFileref_.;
|
||||||
%let outMD = u&_IOFileref_.;
|
%let outMD = u&_IOFileref_.;
|
||||||
|
|
||||||
|
%let bckp_ref = b&_IOFileref_.;
|
||||||
|
%let bckplabel = _BCKP_%sysfunc(compress(%sysfunc(datetime(),b8601dt.),,KD));
|
||||||
|
|
||||||
/* %let in = i%sysfunc(md5(&packageName.),hex7.); */
|
/* %let in = i%sysfunc(md5(&packageName.),hex7.); */
|
||||||
/* %let out = o%sysfunc(md5(&packageName.),hex7.); */
|
/* %let out = o%sysfunc(md5(&packageName.),hex7.); */
|
||||||
|
|
||||||
@@ -1069,7 +1105,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.sas;
|
%let SPFinitMirror = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.sas;
|
||||||
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.md;
|
%let SPFinitMirrorMD = https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/&vers./SPF/SPFinit.md;
|
||||||
%end;
|
%end;
|
||||||
%if %superq(mirror) > 1 %then
|
%if NOT (%superq(mirror) in (0 1 4)) %then
|
||||||
%put %str( )Mirror %superq(mirror) does not support versioning.;
|
%put %str( )Mirror %superq(mirror) does not support versioning.;
|
||||||
|
|
||||||
/* source code file */
|
/* source code file */
|
||||||
@@ -1092,12 +1128,12 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
%do;
|
%do;
|
||||||
%if %superq(mirror) IN (0 3 4) %then /* SASPAC or PharmaForest or an arbitrary GitHub repo */
|
%if %superq(mirror) IN (0 3 4) %then /* SASPAC or PharmaForest or an arbitrary GitHub repo */
|
||||||
%do;
|
%do;
|
||||||
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;
|
%let packageSubDir = &githubRepo./raw/main/;
|
||||||
|
|
||||||
%if %superq(vers) ne %then
|
%if %superq(vers) ne %then
|
||||||
%do;
|
%do;
|
||||||
/*%let packageSubDir = %sysfunc(lowcase(&packageName.))/main/hist/&version./;*/
|
/*%let packageSubDir = %sysfunc(lowcase(&packageName.))/main/hist/&version./;*/
|
||||||
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/&vers./;
|
%let packageSubDir = &githubRepo./raw/&vers./;
|
||||||
%end;
|
%end;
|
||||||
%end;
|
%end;
|
||||||
%else
|
%else
|
||||||
@@ -1134,6 +1170,13 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
/* copy the file byte-by-byte */
|
/* copy the file byte-by-byte */
|
||||||
%local installationRC;
|
%local installationRC;
|
||||||
%let installationRC=1;
|
%let installationRC=1;
|
||||||
|
|
||||||
|
%if (%superq(githubToken)= )
|
||||||
|
OR
|
||||||
|
(%upcase(&packageName.) in (SPFINIT SASPACKAGEFRAMEWORK SASPACKAGESFRAMEWORK))
|
||||||
|
%then
|
||||||
|
%do;
|
||||||
|
/* public repo, location with URL access, or SPFinit */
|
||||||
data _null_;
|
data _null_;
|
||||||
length filein fileinMD 8
|
length filein fileinMD 8
|
||||||
out_path in_path out_pathMD in_pathMD rcTXT $ 4096
|
out_path in_path out_pathMD in_pathMD rcTXT $ 4096
|
||||||
@@ -1180,12 +1223,34 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
do;
|
do;
|
||||||
if symgetn("replace")=1 then
|
if symgetn("replace")=1 then
|
||||||
do;
|
do;
|
||||||
|
rc = 0;
|
||||||
put @2 "The following file will be replaced during "
|
put @2 "The following file will be replaced during "
|
||||||
/ @2 "installation of the &packageName. package: "
|
/ @2 "installation of the &packageName. package: "
|
||||||
/ @5 out_path;
|
/ @5 out_path;
|
||||||
rc = FDELETE(out_ref);
|
|
||||||
rc = FCOPY(in_ref, out_ref);
|
/* backup package file */
|
||||||
|
if symgetn("backup")=1 then
|
||||||
|
do;
|
||||||
|
length bckp_ref $ 8 bckplabel $ 32;
|
||||||
|
bckplabel = "&bckplabel.";
|
||||||
|
rc = filename(bckp_ref, cats(out_path, bckplabel), "DISK", "recfm=N lrecl=1");
|
||||||
|
put / @2 "The following backup file will be created:"
|
||||||
|
/ @5 out_path +(-1) bckplabel;
|
||||||
|
rc + FCOPY(out_ref, bckp_ref);
|
||||||
rcTXT=sysmsg();
|
rcTXT=sysmsg();
|
||||||
|
if rc then put "WARNING: [&packageName.] Backup failed... ";
|
||||||
|
_N_ = filename(bckp_ref);
|
||||||
|
end;
|
||||||
|
|
||||||
|
/* replace package file */
|
||||||
|
if rc=0 then
|
||||||
|
do;
|
||||||
|
rc + FDELETE(out_ref);
|
||||||
|
if 0=rc then
|
||||||
|
rc + FCOPY(in_ref, out_ref);
|
||||||
|
rcTXT=sysmsg();
|
||||||
|
if rc then put "WARNING: [&packageName.] Installation failed... ";
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
else
|
else
|
||||||
do;
|
do;
|
||||||
@@ -1213,6 +1278,9 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
end;
|
end;
|
||||||
else if 1=FEXIST(out_refMD) and 1=symgetn("replace") then
|
else if 1=FEXIST(out_refMD) and 1=symgetn("replace") then
|
||||||
do;
|
do;
|
||||||
|
if symgetn("backup")=1 then
|
||||||
|
put @2 "No backup done for documentation file.";
|
||||||
|
|
||||||
rcMD = FDELETE(out_refMD);
|
rcMD = FDELETE(out_refMD);
|
||||||
if rcMD=0 then
|
if rcMD=0 then
|
||||||
rcMD2 = FCOPY(in_refMD, out_refMD);
|
rcMD2 = FCOPY(in_refMD, out_refMD);
|
||||||
@@ -1224,6 +1292,160 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
put @2 "Package documentation in markdown format not available." ; /* / out_pathMD / in_pathMD;*/
|
put @2 "Package documentation in markdown format not available." ; /* / out_pathMD / in_pathMD;*/
|
||||||
end;
|
end;
|
||||||
run;
|
run;
|
||||||
|
/************************************************************************************************************/
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
/* when githubToken= is not null then a "private repo" case is assumed */
|
||||||
|
/* except for SPFinit.sas that is always installed from SAS_PACKAGES public repo */
|
||||||
|
|
||||||
|
%put [NOTE!] This feature is experimental in this release!;
|
||||||
|
%local ref notRunHTTP;
|
||||||
|
%let notRunHTTP=1;
|
||||||
|
%if %superq(vers)= %then %let ref = main;
|
||||||
|
%else %let ref = &vers.;
|
||||||
|
|
||||||
|
%if NOT(%superq(githubTokenDebug) in (0 1 2 3)) %then %let githubTokenDebug = 0;
|
||||||
|
|
||||||
|
%if %sysfunc(FEXIST(&out.)) = 0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )Installing the &packageName. package;
|
||||||
|
%put %str( )in the &firstPackagesPath. directory.;
|
||||||
|
%let notRunHTTP=0;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%if 1=&replace. %then
|
||||||
|
%do;
|
||||||
|
%put %str( )The following file will be replaced during;
|
||||||
|
%put %str( )installation of the &packageName. package:;
|
||||||
|
%put %str( )%sysfunc(pathname(&out.));
|
||||||
|
|
||||||
|
/* backup package file */
|
||||||
|
%if 1=&backup. %then
|
||||||
|
%do;
|
||||||
|
filename &bckp_ref. "&firstPackagesPath./%sysfunc(lowcase(&packageName.)).zip&bckplabel." recfm=N lrecl=1;
|
||||||
|
|
||||||
|
%put %str( )The following backup file will be created:;
|
||||||
|
%put %str( )%sysfunc(pathname(&bckp_ref.));
|
||||||
|
|
||||||
|
%let notRunHTTP = %sysfunc(FCOPY(&out., &bckp_ref.));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
|
||||||
|
filename &bckp_ref. clear;
|
||||||
|
|
||||||
|
%let notRunHTTP = %sysevalf(¬RunHTTP. + %sysfunc(FDELETE(&out.)));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let notRunHTTP = %sysfunc(FDELETE(&out.));
|
||||||
|
%put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%put %str( )The following file will NOT be replaced:;
|
||||||
|
%put %str( )%sysfunc(pathname(&out.));
|
||||||
|
%let notRunHTTP = 1;
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if %superq(githubToken) NE %qsysfunc(compress(%superq(githubToken),%str( _),KAD)) %then
|
||||||
|
%do;
|
||||||
|
%put WARNING: The githubToken= parameter contains illegal symbols;
|
||||||
|
%put WARNING- Allowed symbols are letters A to Z and a to z, digits 0 to 9, and underscore(_);
|
||||||
|
%put WARNING- Verify your token. Installation aborted.;
|
||||||
|
%let notRunHTTP = 1;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if ¬RunHTTP.=0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )URL called by PROC HTTP is:;
|
||||||
|
%put %str( )"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).zip?ref=&ref.";
|
||||||
|
%put %str( )Headers:;
|
||||||
|
%put %str( )Accept=application/vnd.github.raw+json;
|
||||||
|
%put %str( )X-GitHub-Api-Version=2026-03-10;
|
||||||
|
%put %str( )Authorization=Bearer *****************;
|
||||||
|
%put %str( );
|
||||||
|
|
||||||
|
|
||||||
|
/* proc http setup based on:
|
||||||
|
https://docs.github.com/en/rest/repos/contents?apiVersion=2026-03-10#get-repository-content
|
||||||
|
*/
|
||||||
|
proc http
|
||||||
|
method="GET"
|
||||||
|
out=&out.
|
||||||
|
URL=
|
||||||
|
"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).zip?ref=&ref."
|
||||||
|
CLEAR_CACHE
|
||||||
|
;
|
||||||
|
headers
|
||||||
|
"Accept"="application/vnd.github.raw+json"
|
||||||
|
"X-GitHub-Api-Version"="2026-03-10"
|
||||||
|
"Authorization"="Bearer &githubToken."
|
||||||
|
;
|
||||||
|
debug level=&githubTokenDebug.;
|
||||||
|
run;
|
||||||
|
|
||||||
|
%if %sysfunc(FEXIST(&out.)) AND &SYS_PROCHTTP_STATUS_CODE.=200 %then
|
||||||
|
%do;
|
||||||
|
%let installationRC=0;
|
||||||
|
%put %str( )Done with return code rc=0 (zero = success);
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let installationRC=1;
|
||||||
|
%put %str( )Done with return code rc=&SYS_PROCHTTP_STATUS_CODE. (zero = success);
|
||||||
|
%put %str( )Message: &SYS_PROCHTTP_STATUS_PHRASE.;
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%let notRunHTTP=1;
|
||||||
|
%if 1=&instDoc. AND 0=&installationRC. %then
|
||||||
|
%do;
|
||||||
|
%if %sysfunc(FEXIST(&outMD.)) = 0 %then
|
||||||
|
%do;
|
||||||
|
%put %str( )Package documentation installation on request:;
|
||||||
|
%let notRunHTTP = 0;
|
||||||
|
%end;
|
||||||
|
%else %if 1=&replace. %then
|
||||||
|
%do;
|
||||||
|
%if 1=&backup. %then %put %str( )No backup done for documentation file.;
|
||||||
|
%put %str( )Package documentation installation on demand:;
|
||||||
|
%let notRunHTTP = %sysfunc(FDELETE(&outMD.));
|
||||||
|
%if ¬RunHTTP. %then %put %sysfunc(sysmsg());
|
||||||
|
%end;
|
||||||
|
|
||||||
|
%if ¬RunHTTP.=0 %then
|
||||||
|
%do;
|
||||||
|
proc http
|
||||||
|
method="GET"
|
||||||
|
out=&outMD.
|
||||||
|
URL=
|
||||||
|
"https://api.github.com/repos/&github./&githubRepo./contents/%sysfunc(lowcase(&packageName.)).md?ref=&ref."
|
||||||
|
CLEAR_CACHE
|
||||||
|
;
|
||||||
|
headers
|
||||||
|
"Accept"="application/vnd.github.raw+json"
|
||||||
|
"X-GitHub-Api-Version"="2026-03-10"
|
||||||
|
"Authorization"="Bearer &githubToken."
|
||||||
|
;
|
||||||
|
debug level=&githubTokenDebug.;
|
||||||
|
run;
|
||||||
|
%if %sysfunc(FEXIST(&outMD.)) AND &SYS_PROCHTTP_STATUS_CODE.=200
|
||||||
|
%then %put %str( )status successful!;
|
||||||
|
%else %put %str( )status unsuccessful!;
|
||||||
|
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
%else
|
||||||
|
%do;
|
||||||
|
%let installationRC=1;
|
||||||
|
%put %str( )Done with return code rc=1 (zero = success);
|
||||||
|
%end;
|
||||||
|
/************************************************************************************************************/
|
||||||
|
%end;
|
||||||
|
|
||||||
filename &in. clear;
|
filename &in. clear;
|
||||||
filename &out. clear;
|
filename &out. clear;
|
||||||
@@ -1422,7 +1644,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
|
|
||||||
Macro to list SAS packages in packages folder.
|
Macro to list SAS packages in packages folder.
|
||||||
|
|
||||||
Version 20260216
|
Version 20260411
|
||||||
|
|
||||||
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
|
||||||
@@ -1444,7 +1666,7 @@ des = 'Macro to install SAS package, version 20260216. Run %%installPackage() fo
|
|||||||
listDataSet /* Name of a data set to save results */
|
listDataSet /* Name of a data set to save results */
|
||||||
, quiet = 0 /* Indicate if results should be printed in log */
|
, quiet = 0 /* Indicate if results should be printed in log */
|
||||||
)/secure parmbuff
|
)/secure parmbuff
|
||||||
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260216.'
|
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260411.'
|
||||||
;
|
;
|
||||||
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -1459,7 +1681,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 `20260216` #;
|
%put # Macro to list available SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -1685,7 +1907,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
|||||||
|
|
||||||
Macro to generate SAS packages.
|
Macro to generate SAS packages.
|
||||||
|
|
||||||
Version 20260216
|
Version 20260411
|
||||||
|
|
||||||
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
|
||||||
@@ -1735,7 +1957,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
|||||||
when empty takes buildLocation */
|
when empty takes buildLocation */
|
||||||
)/ secure minoperator
|
)/ secure minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to generate SAS packages, version 20260216. Run %generatePackage() for help info.'
|
des = 'Macro to generate SAS packages, version 20260411. Run %generatePackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -1750,7 +1972,7 @@ des = 'Macro to generate SAS packages, version 20260216. 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 `20260216` #;
|
%put # Macro to generate SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -2632,7 +2854,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
|
|||||||
title&_titleNumber_. "Package ZIP file location is: &buildLocation.";
|
title&_titleNumber_. "Package ZIP file location is: &buildLocation.";
|
||||||
%end;
|
%end;
|
||||||
|
|
||||||
footnote1 "SAS Packages Framework, version 20260216";
|
footnote1 "SAS Packages Framework, version 20260411";
|
||||||
|
|
||||||
proc print
|
proc print
|
||||||
data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent)
|
data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent)
|
||||||
@@ -3457,7 +3679,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 20260216.;'''
|
/ ' !! '' %put with the SAS Packages Framework version 20260411.;'''
|
||||||
/ ' !! '' %put ****************************************************************************;'''
|
/ ' !! '' %put ****************************************************************************;'''
|
||||||
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
||||||
/ ' !! '' %end;''' ;
|
/ ' !! '' %end;''' ;
|
||||||
@@ -3621,7 +3843,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 20260216.; '' !! ' /
|
''' %put with the SAS Packages Framework version 20260411.; '' !! ' /
|
||||||
''' %put ****************************************************************************; '' !! ' /
|
''' %put ****************************************************************************; '' !! ' /
|
||||||
''' %GOTO theEndOfTheMacro; '' !! ' /
|
''' %GOTO theEndOfTheMacro; '' !! ' /
|
||||||
''' %end; '' !! ' /
|
''' %end; '' !! ' /
|
||||||
@@ -4493,7 +4715,7 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
||||||
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260216`*";'
|
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260411`*";'
|
||||||
/ "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';"
|
/ "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';"
|
||||||
/ "put @3 '*using SAS release: `&sysvlong4.`.*';"
|
/ "put @3 '*using SAS release: `&sysvlong4.`.*';"
|
||||||
/ 'put " " / @3 "---------------------------------------------------------------------";';
|
/ 'put " " / @3 "---------------------------------------------------------------------";';
|
||||||
@@ -4932,7 +5154,7 @@ options &qlenmax_fstimer_tmp.;
|
|||||||
|
|
||||||
/*+SPFint_gnPckg_tests+*/
|
/*+SPFint_gnPckg_tests+*/
|
||||||
%macro SPFint_gnPckg_tests()/secure minoperator
|
%macro SPFint_gnPckg_tests()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -5614,7 +5836,7 @@ options "elenmax_tmp.;
|
|||||||
|
|
||||||
/*+SPFint_gnPckg_markdown+*/
|
/*+SPFint_gnPckg_markdown+*/
|
||||||
%macro SPFint_gnPckg_markdown()/secure minoperator
|
%macro SPFint_gnPckg_markdown()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -5726,7 +5948,7 @@ data &filesWithCodes.markdown;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put " " / "---------------------------------------------------------------------" / " "
|
put " " / "---------------------------------------------------------------------" / " "
|
||||||
/ "*SAS package generated by SAS Package Framework, version `20260216`,*"
|
/ "*SAS package generated by SAS Package Framework, version `20260411`,*"
|
||||||
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
||||||
/ "*using SAS release: `&sysvlong4.`.*"
|
/ "*using SAS release: `&sysvlong4.`.*"
|
||||||
/ " " / "---------------------------------------------------------------------" / " ";
|
/ " " / "---------------------------------------------------------------------" / " ";
|
||||||
@@ -5867,7 +6089,7 @@ options &MarkDownOptionsTmp.;
|
|||||||
|
|
||||||
/*+SPFint_gnPckg_arch+*/
|
/*+SPFint_gnPckg_arch+*/
|
||||||
%macro SPFint_gnPckg_arch()/secure minoperator
|
%macro SPFint_gnPckg_arch()/secure minoperator
|
||||||
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260216.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260411.';
|
||||||
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
/* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */
|
||||||
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
%if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -6034,7 +6256,7 @@ TODO: (in Polish)
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load multiple SAS packages at one run, version 20260216. Run %loadPackages() for help info.'
|
des = 'Macro to load multiple SAS packages at one run, version 20260411. Run %loadPackages() for help info.'
|
||||||
parmbuff
|
parmbuff
|
||||||
;
|
;
|
||||||
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
||||||
@@ -6050,7 +6272,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 `20260216` #;
|
%put # Macro wrapper for the loadPackage macro, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -6148,7 +6370,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 20260216. Run %verifyPackage() for help info.'
|
des = 'Macro to verify SAS package with the hash digest, version 20260411. Run %verifyPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -6163,7 +6385,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20260216. 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 `20260216` #;
|
%put # Macro to verify SAS package with it hash digest, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -6379,7 +6601,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20260216. Run %
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to preview content of a SAS package, version 20260216. Run %previewPackage() for help info.'
|
des = 'Macro to preview content of a SAS package, version 20260411. Run %previewPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -6394,7 +6616,7 @@ des = 'Macro to preview content of a SAS package, version 20260216. 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 `20260216` #;
|
%put # Macro to get preview of a SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -6528,7 +6750,7 @@ des = 'Macro to preview content of a SAS package, version 20260216. 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 20260216. Run %extendPackagesFileref(HELP) for help info.'
|
des = 'Macro to list directories pointed by "packages" fileref, version 20260411. Run %extendPackagesFileref(HELP) for help info.'
|
||||||
;
|
;
|
||||||
|
|
||||||
%if %QUPCASE(&packages.) = HELP %then
|
%if %QUPCASE(&packages.) = HELP %then
|
||||||
@@ -6544,7 +6766,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20260216
|
|||||||
%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 `20260216` #;
|
%put # Macro to list directories pointed by 'packages' fileref, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -6646,7 +6868,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 20260216. Run %loadPackageAddCnt() for help info.'
|
des = 'Macro to load additional content for a SAS package, version 20260411. Run %loadPackageAddCnt() for help info.'
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
@@ -6662,7 +6884,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 `20260216` #;
|
%put # Macro to *load* additional content for a SAS package, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -7033,7 +7255,7 @@ minoperator
|
|||||||
,nobs=0 /* technical parameter */
|
,nobs=0 /* technical parameter */
|
||||||
)
|
)
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260216. Run %splitCodeForPackage() for help info.'
|
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260411. Run %splitCodeForPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -7049,7 +7271,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 `20260216` #;
|
%put # files with separate snippets, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -7425,7 +7647,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 20260216. */';
|
put '/* File generated with help of SAS Packages Framework, version 20260411. */';
|
||||||
firstLine[j]=0;
|
firstLine[j]=0;
|
||||||
end;
|
end;
|
||||||
put _infile_;
|
put _infile_;
|
||||||
@@ -7458,7 +7680,7 @@ options &options_tmp2.;
|
|||||||
,psMAX=MAX /* pageSise in case executed inside DoSubL() */
|
,psMAX=MAX /* pageSise in case executed inside DoSubL() */
|
||||||
,ods= /* a data set for results, e.g., work.relocatePackageReport */
|
,ods= /* a data set for results, e.g., work.relocatePackageReport */
|
||||||
)
|
)
|
||||||
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260216. Run %relocatePackage() for help info.'
|
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260411. Run %relocatePackage() for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -7476,7 +7698,7 @@ options &options_tmp2.;
|
|||||||
%put ### This is short help information for the `relocatePackage` macro #;
|
%put ### This is short help information for the `relocatePackage` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260216` #;
|
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -8134,7 +8356,7 @@ filename PACKAGES ("R:\testPackages2" "R:\testPackages1");
|
|||||||
vERRb /* indicates if macro should be verbose and report errors */
|
vERRb /* indicates if macro should be verbose and report errors */
|
||||||
)
|
)
|
||||||
/ minoperator PARMBUFF
|
/ minoperator PARMBUFF
|
||||||
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260216.'
|
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260411.'
|
||||||
;
|
;
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
||||||
@@ -8150,7 +8372,7 @@ des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFile
|
|||||||
%put ### This is short help information for the `isPackagesFilerefOK` macro #;
|
%put ### This is short help information for the `isPackagesFilerefOK` macro #;
|
||||||
%put #-----------------------------------------------------------------------------------------#;;
|
%put #-----------------------------------------------------------------------------------------#;;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to check if the `packages` fileref is "correct", version `20260216` #;
|
%put # Macro to check if the `packages` fileref is "correct", version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -8284,7 +8506,7 @@ SPFmacroName /* space separated list of names */
|
|||||||
/
|
/
|
||||||
minoperator
|
minoperator
|
||||||
secure
|
secure
|
||||||
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260216. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260411. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
||||||
;
|
;
|
||||||
%local list N i element;
|
%local list N i element;
|
||||||
%let list=
|
%let list=
|
||||||
@@ -8330,7 +8552,7 @@ SasPackagesFrameworkNotes
|
|||||||
%put ### This is short help information for the `SasPackagesFrameworkNotes` macro #;
|
%put ### This is short help information for the `SasPackagesFrameworkNotes` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro prints help notes for SAS Packages Framework macros, version `20260216` #;
|
%put # Macro prints help notes for SAS Packages Framework macros, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -8453,7 +8675,7 @@ options mlogic symbolgen;
|
|||||||
,packagesRef=packages
|
,packagesRef=packages
|
||||||
,ods= /* data set for report file */
|
,ods= /* data set for report file */
|
||||||
)/
|
)/
|
||||||
des='Macro to create a bundle of SAS packages, version 20260216. Run %bundlePackages(HELP) for help info.'
|
des='Macro to create a bundle of SAS packages, version 20260411. Run %bundlePackages(HELP) for help info.'
|
||||||
secure minoperator
|
secure minoperator
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -8470,7 +8692,7 @@ secure minoperator
|
|||||||
%put ### This is short help information for the `bundlePackages` macro #;
|
%put ### This is short help information for the `bundlePackages` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *create bundles* of SAS packages, version `20260216` #;
|
%put # Macro to *create bundles* of SAS packages, version `20260411` #;
|
||||||
%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 #;
|
||||||
@@ -8955,7 +9177,7 @@ filename p2 "R:/dontexist";
|
|||||||
,ods= /* data set for report file */
|
,ods= /* data set for report file */
|
||||||
,verify=0
|
,verify=0
|
||||||
)/
|
)/
|
||||||
des='Macro to extract a bundle of SAS packages, version 20260216. Run %unbundlePackages(HELP) for help info.'
|
des='Macro to extract a bundle of SAS packages, version 20260411. Run %unbundlePackages(HELP) for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -8973,7 +9195,7 @@ minoperator
|
|||||||
%put ### This is short help information for the `unbundlePackages` macro #;
|
%put ### This is short help information for the `unbundlePackages` macro #;
|
||||||
%put #-------------------------------------------------------------------------------#;
|
%put #-------------------------------------------------------------------------------#;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to *extract* SAS packages from a bundle, version `20260216` #;
|
%put # Macro to *extract* SAS packages from a bundle, version `20260411` #;
|
||||||
%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 #;
|
||||||
|
|||||||
Reference in New Issue
Block a user