mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2026-04-13 17:43:14 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3520e4b948 | ||
|
|
0bd529e93a | ||
|
|
bb6345fd48 |
@@ -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 **`20251231`**.
|
**The latest version** of the **SAS Packages Framework** is **`20260125`**.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
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 20251231. Run %bundlePackages(HELP) for help info.'
|
des='Macro to create a bundle of SAS packages, version 20260125. 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 `20251231` #;
|
%put # Macro to *create bundles* of SAS packages, version `20260125` #;
|
||||||
%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 20251231. Run %extendPackagesFileref(HELP) for help info.'
|
des = 'Macro to list directories pointed by "packages" fileref, version 20260125. 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 20251231
|
|||||||
%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 `20251231` #;
|
%put # Macro to list directories pointed by 'packages' fileref, version `20260125` #;
|
||||||
%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 20251231
|
Version 20260125
|
||||||
|
|
||||||
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 20251231. Run %generatePackage() for help info.'
|
des = 'Macro to generate SAS packages, version 20260125. 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 20251231. 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 `20251231` #;
|
%put # Macro to generate SAS packages, version `20260125` #;
|
||||||
%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 20251231";
|
footnote1 "SAS Packages Framework, version 20260125";
|
||||||
|
|
||||||
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)
|
||||||
@@ -1769,7 +1769,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 20251231.;'''
|
/ ' !! '' %put with the SAS Packages Framework version 20260125.;'''
|
||||||
/ ' !! '' %put ****************************************************************************;'''
|
/ ' !! '' %put ****************************************************************************;'''
|
||||||
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
||||||
/ ' !! '' %end;''' ;
|
/ ' !! '' %end;''' ;
|
||||||
@@ -1933,7 +1933,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 20251231.; '' !! ' /
|
''' %put with the SAS Packages Framework version 20260125.; '' !! ' /
|
||||||
''' %put ****************************************************************************; '' !! ' /
|
''' %put ****************************************************************************; '' !! ' /
|
||||||
''' %GOTO theEndOfTheMacro; '' !! ' /
|
''' %GOTO theEndOfTheMacro; '' !! ' /
|
||||||
''' %end; '' !! ' /
|
''' %end; '' !! ' /
|
||||||
@@ -2736,7 +2736,7 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
||||||
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20251231`*";'
|
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260125`*";'
|
||||||
/ "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 20251231. Run %helpPackage() for help info.'
|
des = 'Macro to get help about SAS package, version 20260125. 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 20251231. 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 `20251231` #;
|
%put # Macro to get help about SAS packages, version `20260125` #;
|
||||||
%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 20251231 */
|
/* Macros to install SAS packages, version 20260125 */
|
||||||
/* 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
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
/secure
|
/secure
|
||||||
minoperator
|
minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to install SAS package, version 20251231. Run %%installPackage() for help info.'
|
des = 'Macro to install SAS package, version 20260125. 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 +41,7 @@ des = 'Macro to install SAS package, version 20251231. 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 `20251231` #;
|
%put # Macro to install SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -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 20251231.'
|
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260125.'
|
||||||
;
|
;
|
||||||
/*** 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 `20251231` #;
|
%put # Macro to check if the `packages` fileref is "correct", version `20260125` #;
|
||||||
%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 20251231
|
Version 20260125
|
||||||
|
|
||||||
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
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
*//*** HELP END ***/
|
*//*** HELP END ***/
|
||||||
|
|
||||||
|
|
||||||
%macro listPackages()
|
%macro listPackages(listDataSet, quiet=0)
|
||||||
/secure PARMBUFF
|
/ secure PARMBUFF
|
||||||
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20251231.'
|
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260125.'
|
||||||
;
|
;
|
||||||
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
%local options_tmp ;
|
%local options_tmp ;
|
||||||
%let options_tmp = ls=%sysfunc(getoption(ls)) ps=%sysfunc(getoption(ps))
|
%let options_tmp = ls=%sysfunc(getoption(ls)) ps=%sysfunc(getoption(ps))
|
||||||
@@ -38,7 +38,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%put ### This is short help information for the `listPackages` macro #;
|
%put ### This is short help information for the `listPackages` macro #;
|
||||||
%put #-----------------------------------------------------------------------------------------#;;
|
%put #-----------------------------------------------------------------------------------------#;;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to list available SAS packages, version `20251231` #;
|
%put # Macro to list available SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -49,7 +49,11 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%put # #;
|
%put # #;
|
||||||
%put #### Parameters: #;
|
%put #### Parameters: #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # NO PARAMETERS #;
|
%put # 1. `listDataSet` Name of a SAS data set to store results in. #;
|
||||||
|
%put # No data set options are honored. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `quiet=` *Optional.* Indicates if the LOG printout should be suspended. #;
|
||||||
|
%put # Default value of zero (`0`) means "Do printout", other means "No". #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # When used as: `%nrstr(%%listPackages(HELP))` it displays this help information. #;
|
%put # When used as: `%nrstr(%%listPackages(HELP))` it displays this help information. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
@@ -74,6 +78,8 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%put %nrstr( %%include packages(SPFinit.sas); %%* enable the framework; );
|
%put %nrstr( %%include packages(SPFinit.sas); %%* enable the framework; );
|
||||||
%put ;
|
%put ;
|
||||||
%put %nrstr( %%listPackages() %%* list available packages; );
|
%put %nrstr( %%listPackages() %%* list available packages; );
|
||||||
|
%put ;
|
||||||
|
%put %nrstr( %%listPackages(ListDS,quiet=1) %%* save packages list in ListDS data set; );
|
||||||
%put ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
|
%put ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
|
||||||
%put ###########################################################################################;
|
%put ###########################################################################################;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -81,30 +87,47 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%GOTO ENDoflistPackages;
|
%GOTO ENDoflistPackages;
|
||||||
%end;
|
%end;
|
||||||
|
|
||||||
%local ls_tmp ps_tmp notes_tmp source_tmp filesWithCodes;
|
%local ls_tmp ps_tmp notes_tmp source_tmp listDataSetCheck ;
|
||||||
|
|
||||||
%let filesWithCodes = WORK._%sysfunc(datetime(), hex16.)_;
|
|
||||||
|
|
||||||
%let ls_tmp = %sysfunc(getoption(ls));
|
%let ls_tmp = %sysfunc(getoption(ls));
|
||||||
%let ps_tmp = %sysfunc(getoption(ps));
|
%let ps_tmp = %sysfunc(getoption(ps));
|
||||||
%let notes_tmp = %sysfunc(getoption(notes));
|
%let notes_tmp = %sysfunc(getoption(notes));
|
||||||
%let source_tmp = %sysfunc(getoption(source));
|
%let source_tmp = %sysfunc(getoption(source));
|
||||||
|
%let listDataSetCheck=0;
|
||||||
|
|
||||||
|
%let quiet = %sysevalf(NOT(0=%superq(quiet)));
|
||||||
|
|
||||||
options NOnotes NOsource ls=MAX ps=MAX;
|
options NOnotes NOsource ls=MAX ps=MAX;
|
||||||
|
|
||||||
data _null_;
|
data _null_;
|
||||||
length baseAll $ 32767 base $ 1024;
|
length listDataSet $ 41;
|
||||||
|
listDataSet = strip(scan(symget('listDataSet'),1,'( )'));
|
||||||
|
call symputX('listDataSet',listDataSet,"L");
|
||||||
|
if not (listDataSet = " ") then
|
||||||
|
call symputX('listDataSetCheck',1,"L");
|
||||||
|
else call symputX('quiet',0,"L");
|
||||||
|
run;
|
||||||
|
|
||||||
|
data _null_
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
&listDataSet.(compress=yes keep=k base PackageZIPNumber folder n tag value rename=(folder=PackageZIP k=baseNumber n=tagNumber))
|
||||||
|
%end;
|
||||||
|
;
|
||||||
|
length k 8 baseAll $ 32767 base $ 1024 PackageZIPNumber 8;
|
||||||
baseAll = pathname("packages");
|
baseAll = pathname("packages");
|
||||||
|
|
||||||
|
array TAGSLIST[6] $ 16 _temporary_ ("PACKAGE" "TITLE" "VERSION" "AUTHOR" "MAINTAINER" "LICENSE");
|
||||||
|
|
||||||
if baseAll = " " then
|
if baseAll = " " then
|
||||||
do;
|
do;
|
||||||
put "NOTE: The file reference PACKAGES is not assigned.";
|
put "WARNING: The file reference PACKAGES is not assigned.";
|
||||||
stop;
|
stop;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if char(baseAll,1) ^= "(" then baseAll = quote(strip(baseAll)); /* for paths with spaces */
|
if char(baseAll,1) ^= "(" then baseAll = quote(strip(baseAll)); /* for paths with spaces */
|
||||||
|
|
||||||
do k = 1 to kcountw(baseAll, "()", "QS"); drop k;
|
do k = 1 to kcountw(baseAll, "()", "QS"); /*drop k;*/
|
||||||
base = dequote(kscanx(baseAll, k, "()", "QS"));
|
base = dequote(kscanx(baseAll, k, "()", "QS"));
|
||||||
|
|
||||||
length folder $ 64 file $ 1024 folderRef fileRef $ 8;
|
length folder $ 64 file $ 1024 folderRef fileRef $ 8;
|
||||||
@@ -114,15 +137,21 @@ data _null_;
|
|||||||
rc=filename(folderRef, base);
|
rc=filename(folderRef, base);
|
||||||
folderid=dopen(folderRef);
|
folderid=dopen(folderRef);
|
||||||
|
|
||||||
putlog " ";
|
%if 0=&quiet. %then
|
||||||
put "/*" 100*"+" ;
|
%do;
|
||||||
|
putlog " ";
|
||||||
|
put "/*" 100*"+" ;
|
||||||
|
%end;
|
||||||
do i=1 to dnum(folderId); drop i;
|
do i=1 to dnum(folderId); drop i;
|
||||||
|
|
||||||
if i = 1 then
|
if i = 1 then
|
||||||
do;
|
do;
|
||||||
|
%if 0=&quiet. %then
|
||||||
|
%do;
|
||||||
put " #";
|
put " #";
|
||||||
put " # Listing packages for: " base;
|
put " # Listing packages for: " base;
|
||||||
put " #";
|
put " #";
|
||||||
|
%end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
folder = dread(folderId, i);
|
folder = dread(folderId, i);
|
||||||
@@ -133,7 +162,7 @@ data _null_;
|
|||||||
|
|
||||||
EOF = 0;
|
EOF = 0;
|
||||||
if fileId = 0 and lowcase(kscanx(folder, -1, ".")) = 'zip' then
|
if fileId = 0 and lowcase(kscanx(folder, -1, ".")) = 'zip' then
|
||||||
do;
|
do;
|
||||||
file = catx('/',base, folder);
|
file = catx('/',base, folder);
|
||||||
|
|
||||||
rc1 = filename("package", strip(file), 'zip', 'member="description.sas"');
|
rc1 = filename("package", strip(file), 'zip', 'member="description.sas"');
|
||||||
@@ -142,24 +171,43 @@ data _null_;
|
|||||||
|
|
||||||
if rcE then /* if the description.sas exists in the zip then read it */
|
if rcE then /* if the description.sas exists in the zip then read it */
|
||||||
do;
|
do;
|
||||||
putlog " * ";
|
PackageZIPNumber+1;
|
||||||
length nn $ 96;
|
length nn $ 96;
|
||||||
if (96-lengthn(file)) < 1 then
|
%if 0=&quiet. %then
|
||||||
put " * " file;
|
%do;
|
||||||
else
|
putlog " * ";
|
||||||
do;
|
if (96-lengthn(file)) < 1 then
|
||||||
nn = repeat("*", (96-lengthn(file)));
|
put " * " file;
|
||||||
put " * " file nn;
|
else
|
||||||
end;
|
do;
|
||||||
|
nn = repeat("*", (96-lengthn(file)));
|
||||||
|
put " * " file nn;
|
||||||
|
end;
|
||||||
|
%end;
|
||||||
|
|
||||||
infile _DUMMY_ ZIP FILEVAR=file member="description.sas" end=EOF;
|
infile _DUMMY_ ZIP FILEVAR=file member="description.sas" end=EOF;
|
||||||
|
|
||||||
do until(EOF);
|
n = 0;
|
||||||
|
do lineinfile = 1 by 1 until(EOF);
|
||||||
input;
|
input;
|
||||||
if strip(upcase(kscanx(_INFILE_,1,":"))) in ("PACKAGE" "TITLE" "VERSION" "AUTHOR" "MAINTAINER" "LICENSE") then
|
|
||||||
|
length tag $ 16 value $ 4096;
|
||||||
|
|
||||||
|
tag = strip(upcase(kscanx(_INFILE_,1,":")));
|
||||||
|
value = kscanx(_INFILE_,2,":");
|
||||||
|
n = whichc(tag, of TAGSLIST[*]);
|
||||||
|
|
||||||
|
if (n > 0) then
|
||||||
do;
|
do;
|
||||||
_INFILE_ = kscanx(_INFILE_,1,":") !! ":" !! kscanx(_INFILE_,2,":");
|
%if 0=&quiet. %then
|
||||||
putlog " * " _INFILE_;
|
%do;
|
||||||
|
putlog " * " tag +(-1) ":" @ 17 value;
|
||||||
|
%end;
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
output &listDataSet.;
|
||||||
|
%end;
|
||||||
|
n=0;
|
||||||
end;
|
end;
|
||||||
if strip(upcase(strip(_INFILE_))) =: "DESCRIPTION START:" then leave;
|
if strip(upcase(strip(_INFILE_))) =: "DESCRIPTION START:" then leave;
|
||||||
end;
|
end;
|
||||||
@@ -170,15 +218,41 @@ data _null_;
|
|||||||
rc = filename(fileRef);
|
rc = filename(fileRef);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
putlog " * ";
|
%if 0=&quiet. %then
|
||||||
put 100*"+" "*/";
|
%do;
|
||||||
|
putlog " * ";
|
||||||
|
put 100*"+" "*/";
|
||||||
|
%end;
|
||||||
rc = dclose(folderid);
|
rc = dclose(folderid);
|
||||||
rc = filename(folderRef);
|
rc = filename(folderRef);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
stop;
|
stop;
|
||||||
|
label
|
||||||
|
k = "Packages path ordering number."
|
||||||
|
base = "Packages path."
|
||||||
|
PackageZIPNumber = "Packages ZIP file number."
|
||||||
|
folder = "Packages ZIP file."
|
||||||
|
n = "Tag number"
|
||||||
|
tag = "Package Tag Name"
|
||||||
|
value = "Value"
|
||||||
|
;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
proc sort data=&listDataSet. out=&listDataSet.(compress=yes label='Output from the %listPackages() macro');
|
||||||
|
by baseNumber PackageZIPNumber tagNumber;
|
||||||
|
run;
|
||||||
|
|
||||||
|
%if 0=&quiet. %then
|
||||||
|
%do;
|
||||||
|
%put %str( );
|
||||||
|
%put # Results ptovided in the &listDataSet. data set. #;
|
||||||
|
%put %str( );
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
|
||||||
options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
||||||
|
|
||||||
%ENDoflistPackages:
|
%ENDoflistPackages:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load SAS package, version 20251231. Run %loadPackage() for help info.'
|
des = 'Macro to load SAS package, version 20260125. 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 `20251231` #;
|
%put # Macro to *load* SAS packages, version `20260125` #;
|
||||||
%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 20251231. Run %loadPackageAddCnt() for help info.'
|
des = 'Macro to load additional content for a SAS package, version 20260125. 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 `20251231` #;
|
%put # Macro to *load* additional content for a SAS package, version `20260125` #;
|
||||||
%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 20251231. Run %loadPackages() for help info.'
|
des = 'Macro to load multiple SAS packages at one run, version 20260125. 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 `20251231` #;
|
%put # Macro wrapper for the loadPackage macro, version `20260125` #;
|
||||||
%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 20251231. Run %previewPackage() for help info.'
|
des = 'Macro to preview content of a SAS package, version 20260125. 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 20251231. 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 `20251231` #;
|
%put # Macro to get preview of a SAS packages, version `20260125` #;
|
||||||
%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 20251231. Run %relocatePackage() for help info.'
|
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260125. 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 `20251231` #;
|
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260125` #;
|
||||||
%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 20251231. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260125. 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 `20251231` #;
|
%put # Macro prints help notes for SAS Packages Framework macros, version `20260125` #;
|
||||||
%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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260125.';
|
||||||
/* 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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260125.';
|
||||||
/* 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 `20251231`,*"
|
/ "*SAS package generated by SAS Package Framework, version `20260125`,*"
|
||||||
/ "*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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260125.';
|
||||||
/* 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 20251231. Run %splitCodeForPackage() for help info.'
|
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260125. 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 `20251231` #;
|
%put # files with separate snippets, version `20260125` #;
|
||||||
%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 20251231. */';
|
put '/* File generated with help of SAS Packages Framework, version 20260125. */';
|
||||||
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 20251231. Run %unbundlePackages(HELP) for help info.'
|
des='Macro to extract a bundle of SAS packages, version 20260125. 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 `20251231` #;
|
%put # Macro to *extract* SAS packages from a bundle, version `20260125` #;
|
||||||
%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 20251231. Run %unloadPackage() for help info.'
|
des = 'Macro to unload SAS package, version 20260125. 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 20251231. 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 `20251231` #;
|
%put # Macro to unload SAS packages, version `20260125` #;
|
||||||
%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 20251231. Run %verifyPackage() for help info.'
|
des = 'Macro to verify SAS package with the hash digest, version 20260125. 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 20251231. 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 `20251231` #;
|
%put # Macro to verify SAS package with it hash digest, version `20260125` #;
|
||||||
%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 `20251231`
|
# SAS Packages Framework, version `20260125`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -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 **`20251231`**.
|
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20260125`**.
|
||||||
|
|
||||||
**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 `20251231`
|
Macro to install SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -185,7 +185,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 `20251231`
|
Macro to get help about SAS packages, version `20260125`
|
||||||
|
|
||||||
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 +263,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 `20251231`
|
Macro to *load* SAS packages, version `20260125`
|
||||||
|
|
||||||
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 +421,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 `20251231`
|
Macro wrapper for the loadPackage macro, version `20260125`
|
||||||
|
|
||||||
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 +472,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 `20251231`
|
Macro to unload SAS packages, version `20260125`
|
||||||
|
|
||||||
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 +539,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 `20251231`
|
Macro to list available SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -550,7 +550,11 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
|
|
||||||
### Parameters:
|
### Parameters:
|
||||||
|
|
||||||
NO PARAMETERS
|
1. `listDataSet` Name of a SAS data set to store results in.
|
||||||
|
No data set options are honored.
|
||||||
|
|
||||||
|
- `quiet=` *Optional.* Indicates if the LOG printout should be suspended.
|
||||||
|
Default value of zero (`0`) means "Do printout", other means "No".
|
||||||
|
|
||||||
When used as: `%listPackages(HELP)` it displays this help information.
|
When used as: `%listPackages(HELP)` it displays this help information.
|
||||||
|
|
||||||
@@ -576,13 +580,15 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages;
|
|||||||
%include packages(SPFinit.sas); %* enable the framework;
|
%include packages(SPFinit.sas); %* enable the framework;
|
||||||
|
|
||||||
%listPackages() %* list available packages;
|
%listPackages() %* list available packages;
|
||||||
|
|
||||||
|
%listPackages(ListDS,quiet=1) %* save packages list in ListDS data set;
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
## 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 `20251231`
|
Macro to verify SAS package with it hash digest, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -636,7 +642,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 `20251231`
|
Macro to get preview of a SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -705,7 +711,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 `20251231`
|
Macro to generate SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -938,7 +944,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 `20251231`
|
Macro to list directories pointed by 'packages' fileref, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -980,7 +986,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 `20251231`
|
Macro to load *additional content* for a SAS package, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1074,7 +1080,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 `20251231`
|
files with separate snippets, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1155,7 +1161,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 `20251231`
|
Macro to *locally copy or move* (relocate) SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1267,7 +1273,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 `20251231`
|
Macro to check if the `packages` fileref is "correct", version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1318,7 +1324,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 `20251231`
|
Macro prints help notes for SAS Packages Framework macros, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1368,7 +1374,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 `20251231`
|
Macro to *create bundles* of SAS packages, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
@@ -1437,7 +1443,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 `20251231`
|
Macro to *extract* SAS packages from a bundle, version `20260125`
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
226
SPF/SPFinit.sas
226
SPF/SPFinit.sas
@@ -43,7 +43,7 @@
|
|||||||
- to unload, or
|
- to unload, or
|
||||||
- to generate SAS packages.
|
- to generate SAS packages.
|
||||||
|
|
||||||
Version 20251231.
|
Version 20260125.
|
||||||
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 20251231. Run %loadPackage() for help info.'
|
des = 'Macro to load SAS package, version 20260125. 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 `20251231` #;
|
%put # Macro to *load* SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -394,7 +394,7 @@ minoperator
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to unload SAS package, version 20251231. Run %unloadPackage() for help info.'
|
des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -409,7 +409,7 @@ des = 'Macro to unload SAS package, version 20251231. 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 `20251231` #;
|
%put # Macro to unload SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -562,7 +562,7 @@ des = 'Macro to unload SAS package, version 20251231. Run %unloadPackage() for h
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to get help about SAS package, version 20251231. Run %helpPackage() for help info.'
|
des = 'Macro to get help about SAS package, version 20260125. Run %helpPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -577,7 +577,7 @@ des = 'Macro to get help about SAS package, version 20251231. 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 `20251231` #;
|
%put # Macro to get help about SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -720,7 +720,7 @@ TODO:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*+installPackage+*/
|
/*+installPackage+*/
|
||||||
/* Macros to install SAS packages, version 20251231 */
|
/* Macros to install SAS packages, version 20260125 */
|
||||||
/* 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
|
||||||
@@ -747,7 +747,7 @@ TODO:
|
|||||||
/secure
|
/secure
|
||||||
minoperator
|
minoperator
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to install SAS package, version 20251231. Run %%installPackage() for help info.'
|
des = 'Macro to install SAS package, version 20260125. Run %%installPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -762,7 +762,7 @@ des = 'Macro to install SAS package, version 20251231. 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 `20251231` #;
|
%put # Macro to install SAS packages, version `20260125` #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, data steps generating #;
|
%put # of SAS codes (macros, functions, data steps generating #;
|
||||||
@@ -1414,7 +1414,7 @@ des = 'Macro to install SAS package, version 20251231. Run %%installPackage() fo
|
|||||||
|
|
||||||
Macro to list SAS packages in packages folder.
|
Macro to list SAS packages in packages folder.
|
||||||
|
|
||||||
Version 20251231
|
Version 20260125
|
||||||
|
|
||||||
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
|
||||||
@@ -1432,11 +1432,13 @@ des = 'Macro to install SAS package, version 20251231. Run %%installPackage() fo
|
|||||||
*//*** HELP END ***/
|
*//*** HELP END ***/
|
||||||
|
|
||||||
|
|
||||||
%macro listPackages()
|
%macro listPackages(
|
||||||
/secure PARMBUFF
|
listDataSet /* Name of a data set to save results */
|
||||||
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20251231.'
|
, quiet = 0 /* Indicate if results should be printed in log */
|
||||||
|
)/secure parmbuff
|
||||||
|
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260125.'
|
||||||
;
|
;
|
||||||
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
%if (%QUPCASE(&listDataSet.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
%local options_tmp ;
|
%local options_tmp ;
|
||||||
%let options_tmp = ls=%sysfunc(getoption(ls)) ps=%sysfunc(getoption(ps))
|
%let options_tmp = ls=%sysfunc(getoption(ls)) ps=%sysfunc(getoption(ps))
|
||||||
@@ -1449,7 +1451,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 `20251231` #;
|
%put # Macro to list available SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -1460,7 +1462,11 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%put # #;
|
%put # #;
|
||||||
%put #### Parameters: #;
|
%put #### Parameters: #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # NO PARAMETERS #;
|
%put # 1. `listDataSet` Name of a SAS data set to store results in. #;
|
||||||
|
%put # No data set options are honored. #;
|
||||||
|
%put # #;
|
||||||
|
%put # - `quiet=` *Optional.* Indicates if the LOG printout should be suspended. #;
|
||||||
|
%put # Default value of zero (`0`) means "Do printout", other means "No". #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # When used as: `%nrstr(%%listPackages(HELP))` it displays this help information. #;
|
%put # When used as: `%nrstr(%%listPackages(HELP))` it displays this help information. #;
|
||||||
%put # #;
|
%put # #;
|
||||||
@@ -1485,6 +1491,8 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%put %nrstr( %%include packages(SPFinit.sas); %%* enable the framework; );
|
%put %nrstr( %%include packages(SPFinit.sas); %%* enable the framework; );
|
||||||
%put ;
|
%put ;
|
||||||
%put %nrstr( %%listPackages() %%* list available packages; );
|
%put %nrstr( %%listPackages() %%* list available packages; );
|
||||||
|
%put ;
|
||||||
|
%put %nrstr( %%listPackages(ListDS,quiet=1) %%* save packages list in ListDS data set; );
|
||||||
%put ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
|
%put ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
|
||||||
%put ###########################################################################################;
|
%put ###########################################################################################;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -1492,30 +1500,47 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
|
|||||||
%GOTO ENDoflistPackages;
|
%GOTO ENDoflistPackages;
|
||||||
%end;
|
%end;
|
||||||
|
|
||||||
%local ls_tmp ps_tmp notes_tmp source_tmp filesWithCodes;
|
%local ls_tmp ps_tmp notes_tmp source_tmp listDataSetCheck ;
|
||||||
|
|
||||||
%let filesWithCodes = WORK._%sysfunc(datetime(), hex16.)_;
|
|
||||||
|
|
||||||
%let ls_tmp = %sysfunc(getoption(ls));
|
%let ls_tmp = %sysfunc(getoption(ls));
|
||||||
%let ps_tmp = %sysfunc(getoption(ps));
|
%let ps_tmp = %sysfunc(getoption(ps));
|
||||||
%let notes_tmp = %sysfunc(getoption(notes));
|
%let notes_tmp = %sysfunc(getoption(notes));
|
||||||
%let source_tmp = %sysfunc(getoption(source));
|
%let source_tmp = %sysfunc(getoption(source));
|
||||||
|
%let listDataSetCheck=0;
|
||||||
|
|
||||||
|
%let quiet = %sysevalf(NOT(0=%superq(quiet)));
|
||||||
|
|
||||||
options NOnotes NOsource ls=MAX ps=MAX;
|
options NOnotes NOsource ls=MAX ps=MAX;
|
||||||
|
|
||||||
data _null_;
|
data _null_;
|
||||||
length baseAll $ 32767 base $ 1024;
|
length listDataSet $ 41;
|
||||||
|
listDataSet = strip(scan(symget('listDataSet'),1,'( )'));
|
||||||
|
call symputX('listDataSet',listDataSet,"L");
|
||||||
|
if not (listDataSet = " ") then
|
||||||
|
call symputX('listDataSetCheck',1,"L");
|
||||||
|
else call symputX('quiet',0,"L");
|
||||||
|
run;
|
||||||
|
|
||||||
|
data _null_
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
&listDataSet.(compress=yes keep=k base PackageZIPNumber folder n tag value rename=(folder=PackageZIP k=baseNumber n=tagNumber))
|
||||||
|
%end;
|
||||||
|
;
|
||||||
|
length k 8 baseAll $ 32767 base $ 1024 PackageZIPNumber 8;
|
||||||
baseAll = pathname("packages");
|
baseAll = pathname("packages");
|
||||||
|
|
||||||
|
array TAGSLIST[6] $ 16 _temporary_ ("PACKAGE" "TITLE" "VERSION" "AUTHOR" "MAINTAINER" "LICENSE");
|
||||||
|
|
||||||
if baseAll = " " then
|
if baseAll = " " then
|
||||||
do;
|
do;
|
||||||
put "NOTE: The file reference PACKAGES is not assigned.";
|
put "WARNING: The file reference PACKAGES is not assigned.";
|
||||||
stop;
|
stop;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if char(baseAll,1) ^= "(" then baseAll = quote(strip(baseAll)); /* for paths with spaces */
|
if char(baseAll,1) ^= "(" then baseAll = quote(strip(baseAll)); /* for paths with spaces */
|
||||||
|
|
||||||
do k = 1 to kcountw(baseAll, "()", "QS"); drop k;
|
do k = 1 to kcountw(baseAll, "()", "QS"); /*drop k;*/
|
||||||
base = dequote(kscanx(baseAll, k, "()", "QS"));
|
base = dequote(kscanx(baseAll, k, "()", "QS"));
|
||||||
|
|
||||||
length folder $ 64 file $ 1024 folderRef fileRef $ 8;
|
length folder $ 64 file $ 1024 folderRef fileRef $ 8;
|
||||||
@@ -1525,15 +1550,21 @@ data _null_;
|
|||||||
rc=filename(folderRef, base);
|
rc=filename(folderRef, base);
|
||||||
folderid=dopen(folderRef);
|
folderid=dopen(folderRef);
|
||||||
|
|
||||||
putlog " ";
|
%if 0=&quiet. %then
|
||||||
put "/*" 100*"+" ;
|
%do;
|
||||||
|
putlog " ";
|
||||||
|
put "/*" 100*"+" ;
|
||||||
|
%end;
|
||||||
do i=1 to dnum(folderId); drop i;
|
do i=1 to dnum(folderId); drop i;
|
||||||
|
|
||||||
if i = 1 then
|
if i = 1 then
|
||||||
do;
|
do;
|
||||||
|
%if 0=&quiet. %then
|
||||||
|
%do;
|
||||||
put " #";
|
put " #";
|
||||||
put " # Listing packages for: " base;
|
put " # Listing packages for: " base;
|
||||||
put " #";
|
put " #";
|
||||||
|
%end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
folder = dread(folderId, i);
|
folder = dread(folderId, i);
|
||||||
@@ -1544,7 +1575,7 @@ data _null_;
|
|||||||
|
|
||||||
EOF = 0;
|
EOF = 0;
|
||||||
if fileId = 0 and lowcase(kscanx(folder, -1, ".")) = 'zip' then
|
if fileId = 0 and lowcase(kscanx(folder, -1, ".")) = 'zip' then
|
||||||
do;
|
do;
|
||||||
file = catx('/',base, folder);
|
file = catx('/',base, folder);
|
||||||
|
|
||||||
rc1 = filename("package", strip(file), 'zip', 'member="description.sas"');
|
rc1 = filename("package", strip(file), 'zip', 'member="description.sas"');
|
||||||
@@ -1553,24 +1584,43 @@ data _null_;
|
|||||||
|
|
||||||
if rcE then /* if the description.sas exists in the zip then read it */
|
if rcE then /* if the description.sas exists in the zip then read it */
|
||||||
do;
|
do;
|
||||||
putlog " * ";
|
PackageZIPNumber+1;
|
||||||
length nn $ 96;
|
length nn $ 96;
|
||||||
if (96-lengthn(file)) < 1 then
|
%if 0=&quiet. %then
|
||||||
put " * " file;
|
%do;
|
||||||
else
|
putlog " * ";
|
||||||
do;
|
if (96-lengthn(file)) < 1 then
|
||||||
nn = repeat("*", (96-lengthn(file)));
|
put " * " file;
|
||||||
put " * " file nn;
|
else
|
||||||
end;
|
do;
|
||||||
|
nn = repeat("*", (96-lengthn(file)));
|
||||||
|
put " * " file nn;
|
||||||
|
end;
|
||||||
|
%end;
|
||||||
|
|
||||||
infile _DUMMY_ ZIP FILEVAR=file member="description.sas" end=EOF;
|
infile _DUMMY_ ZIP FILEVAR=file member="description.sas" end=EOF;
|
||||||
|
|
||||||
do until(EOF);
|
n = 0;
|
||||||
|
do lineinfile = 1 by 1 until(EOF);
|
||||||
input;
|
input;
|
||||||
if strip(upcase(kscanx(_INFILE_,1,":"))) in ("PACKAGE" "TITLE" "VERSION" "AUTHOR" "MAINTAINER" "LICENSE") then
|
|
||||||
|
length tag $ 16 value $ 4096;
|
||||||
|
|
||||||
|
tag = strip(upcase(kscanx(_INFILE_,1,":")));
|
||||||
|
value = kscanx(_INFILE_,2,":");
|
||||||
|
n = whichc(tag, of TAGSLIST[*]);
|
||||||
|
|
||||||
|
if (n > 0) then
|
||||||
do;
|
do;
|
||||||
_INFILE_ = kscanx(_INFILE_,1,":") !! ":" !! kscanx(_INFILE_,2,":");
|
%if 0=&quiet. %then
|
||||||
putlog " * " _INFILE_;
|
%do;
|
||||||
|
putlog " * " tag +(-1) ":" @ 17 value;
|
||||||
|
%end;
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
output &listDataSet.;
|
||||||
|
%end;
|
||||||
|
n=0;
|
||||||
end;
|
end;
|
||||||
if strip(upcase(strip(_INFILE_))) =: "DESCRIPTION START:" then leave;
|
if strip(upcase(strip(_INFILE_))) =: "DESCRIPTION START:" then leave;
|
||||||
end;
|
end;
|
||||||
@@ -1581,15 +1631,41 @@ data _null_;
|
|||||||
rc = filename(fileRef);
|
rc = filename(fileRef);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
putlog " * ";
|
%if 0=&quiet. %then
|
||||||
put 100*"+" "*/";
|
%do;
|
||||||
|
putlog " * ";
|
||||||
|
put 100*"+" "*/";
|
||||||
|
%end;
|
||||||
rc = dclose(folderid);
|
rc = dclose(folderid);
|
||||||
rc = filename(folderRef);
|
rc = filename(folderRef);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
stop;
|
stop;
|
||||||
|
label
|
||||||
|
k = "Packages path ordering number."
|
||||||
|
base = "Packages path."
|
||||||
|
PackageZIPNumber = "Packages ZIP file number."
|
||||||
|
folder = "Packages ZIP file."
|
||||||
|
n = "Tag number"
|
||||||
|
tag = "Package Tag Name"
|
||||||
|
value = "Value"
|
||||||
|
;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
|
%if 1=&listDataSetCheck. %then
|
||||||
|
%do;
|
||||||
|
proc sort data=&listDataSet. out=&listDataSet.(compress=yes label='Output from the %listPackages() macro');
|
||||||
|
by baseNumber PackageZIPNumber tagNumber;
|
||||||
|
run;
|
||||||
|
|
||||||
|
%if 0=&quiet. %then
|
||||||
|
%do;
|
||||||
|
%put %str( );
|
||||||
|
%put # Results ptovided in the &listDataSet. data set. #;
|
||||||
|
%put %str( );
|
||||||
|
%end;
|
||||||
|
%end;
|
||||||
|
|
||||||
options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
||||||
|
|
||||||
%ENDoflistPackages:
|
%ENDoflistPackages:
|
||||||
@@ -1601,7 +1677,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.;
|
|||||||
|
|
||||||
Macro to generate SAS packages.
|
Macro to generate SAS packages.
|
||||||
|
|
||||||
Version 20251231
|
Version 20260125
|
||||||
|
|
||||||
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
|
||||||
@@ -1651,7 +1727,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 20251231. Run %generatePackage() for help info.'
|
des = 'Macro to generate SAS packages, version 20260125. Run %generatePackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -1666,7 +1742,7 @@ des = 'Macro to generate SAS packages, version 20251231. 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 `20251231` #;
|
%put # Macro to generate SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -2548,7 +2624,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 20251231";
|
footnote1 "SAS Packages Framework, version 20260125";
|
||||||
|
|
||||||
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)
|
||||||
@@ -3367,7 +3443,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 20251231.;'''
|
/ ' !! '' %put with the SAS Packages Framework version 20260125.;'''
|
||||||
/ ' !! '' %put ****************************************************************************;'''
|
/ ' !! '' %put ****************************************************************************;'''
|
||||||
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
/ ' !! '' %GOTO theEndOfTheMacro;'''
|
||||||
/ ' !! '' %end;''' ;
|
/ ' !! '' %end;''' ;
|
||||||
@@ -3531,7 +3607,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 20251231.; '' !! ' /
|
''' %put with the SAS Packages Framework version 20260125.; '' !! ' /
|
||||||
''' %put ****************************************************************************; '' !! ' /
|
''' %put ****************************************************************************; '' !! ' /
|
||||||
''' %GOTO theEndOfTheMacro; '' !! ' /
|
''' %GOTO theEndOfTheMacro; '' !! ' /
|
||||||
''' %end; '' !! ' /
|
''' %end; '' !! ' /
|
||||||
@@ -4334,7 +4410,7 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
put 'put " " / @3 "---------------------------------------------------------------------" / " ";'
|
||||||
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20251231`*";'
|
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20260125`*";'
|
||||||
/ "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 "---------------------------------------------------------------------";';
|
||||||
@@ -4773,7 +4849,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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260125.';
|
||||||
/* 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;
|
||||||
@@ -5422,7 +5498,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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260125.';
|
||||||
/* 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;
|
||||||
@@ -5534,7 +5610,7 @@ data &filesWithCodes.markdown;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
put " " / "---------------------------------------------------------------------" / " "
|
put " " / "---------------------------------------------------------------------" / " "
|
||||||
/ "*SAS package generated by SAS Package Framework, version `20251231`,*"
|
/ "*SAS package generated by SAS Package Framework, version `20260125`,*"
|
||||||
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
/ "*under `&sysscp.`(`&sysscpl.`) operating system,*"
|
||||||
/ "*using SAS release: `&sysvlong4.`.*"
|
/ "*using SAS release: `&sysvlong4.`.*"
|
||||||
/ " " / "---------------------------------------------------------------------" / " ";
|
/ " " / "---------------------------------------------------------------------" / " ";
|
||||||
@@ -5675,7 +5751,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 20251231.';
|
des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260125.';
|
||||||
/* 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;
|
||||||
@@ -5842,7 +5918,7 @@ TODO: (in Polish)
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to load multiple SAS packages at one run, version 20251231. Run %loadPackages() for help info.'
|
des = 'Macro to load multiple SAS packages at one run, version 20260125. Run %loadPackages() for help info.'
|
||||||
parmbuff
|
parmbuff
|
||||||
;
|
;
|
||||||
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
|
||||||
@@ -5858,7 +5934,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 `20251231` #;
|
%put # Macro wrapper for the loadPackage macro, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -5956,7 +6032,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 20251231. Run %verifyPackage() for help info.'
|
des = 'Macro to verify SAS package with the hash digest, version 20260125. Run %verifyPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -5971,7 +6047,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20251231. 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 `20251231` #;
|
%put # Macro to verify SAS package with it hash digest, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -6154,7 +6230,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20251231. Run %
|
|||||||
*/
|
*/
|
||||||
)/secure
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
des = 'Macro to preview content of a SAS package, version 20251231. Run %previewPackage() for help info.'
|
des = 'Macro to preview content of a SAS package, version 20260125. Run %previewPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -6169,7 +6245,7 @@ des = 'Macro to preview content of a SAS package, version 20251231. 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 `20251231` #;
|
%put # Macro to get preview of a SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -6301,7 +6377,7 @@ des = 'Macro to preview content of a SAS package, version 20251231. 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 20251231. Run %extendPackagesFileref(HELP) for help info.'
|
des = 'Macro to list directories pointed by "packages" fileref, version 20260125. Run %extendPackagesFileref(HELP) for help info.'
|
||||||
;
|
;
|
||||||
|
|
||||||
%if %QUPCASE(&packages.) = HELP %then
|
%if %QUPCASE(&packages.) = HELP %then
|
||||||
@@ -6317,7 +6393,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20251231
|
|||||||
%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 `20251231` #;
|
%put # Macro to list directories pointed by 'packages' fileref, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -6419,7 +6495,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 20251231. Run %loadPackageAddCnt() for help info.'
|
des = 'Macro to load additional content for a SAS package, version 20260125. Run %loadPackageAddCnt() for help info.'
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
|
||||||
@@ -6435,7 +6511,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 `20251231` #;
|
%put # Macro to *load* additional content for a SAS package, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -6804,7 +6880,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 20251231. Run %splitCodeForPackage() for help info.'
|
/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260125. Run %splitCodeForPackage() for help info.'
|
||||||
;
|
;
|
||||||
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
%if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then
|
||||||
%do;
|
%do;
|
||||||
@@ -6820,7 +6896,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 `20251231` #;
|
%put # files with separate snippets, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -7196,7 +7272,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 20251231. */';
|
put '/* File generated with help of SAS Packages Framework, version 20260125. */';
|
||||||
firstLine[j]=0;
|
firstLine[j]=0;
|
||||||
end;
|
end;
|
||||||
put _infile_;
|
put _infile_;
|
||||||
@@ -7229,7 +7305,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 20251231. Run %relocatePackage() for help info.'
|
/ des = 'Utility macro that locally Copies or Moves Packages, version 20260125. Run %relocatePackage() for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -7247,7 +7323,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 `20251231` #;
|
%put # Macro to *locally copy or move* (relocate) SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -7905,7 +7981,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 20251231.'
|
des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260125.'
|
||||||
;
|
;
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
|
||||||
@@ -7921,7 +7997,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 `20251231` #;
|
%put # Macro to check if the `packages` fileref is "correct", version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -8055,7 +8131,7 @@ SPFmacroName /* space separated list of names */
|
|||||||
/
|
/
|
||||||
minoperator
|
minoperator
|
||||||
secure
|
secure
|
||||||
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20251231. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260125. Run %SasPackagesFrameworkNotes(HELP) for help info.'
|
||||||
;
|
;
|
||||||
%local list N i element;
|
%local list N i element;
|
||||||
%let list=
|
%let list=
|
||||||
@@ -8101,7 +8177,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 `20251231` #;
|
%put # Macro prints help notes for SAS Packages Framework macros, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -8224,7 +8300,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 20251231. Run %bundlePackages(HELP) for help info.'
|
des='Macro to create a bundle of SAS packages, version 20260125. Run %bundlePackages(HELP) for help info.'
|
||||||
secure minoperator
|
secure minoperator
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -8241,7 +8317,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 `20251231` #;
|
%put # Macro to *create bundles* of SAS packages, version `20260125` #;
|
||||||
%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 #;
|
||||||
@@ -8726,7 +8802,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 20251231. Run %unbundlePackages(HELP) for help info.'
|
des='Macro to extract a bundle of SAS packages, version 20260125. Run %unbundlePackages(HELP) for help info.'
|
||||||
secure
|
secure
|
||||||
minoperator
|
minoperator
|
||||||
;
|
;
|
||||||
@@ -8744,7 +8820,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 `20251231` #;
|
%put # Macro to *extract* SAS packages from a bundle, version `20260125` #;
|
||||||
%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 #;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ SHA256 digest for DFA: F*012375D87F66EB3A7BF5DDD0CC5AEE28851733EE33CC63231DF9045
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- **macroArray**\[1.2.6\], implementation of an array concept in a macro language, e.g.
|
- **macroArray**\[1.3.0\], implementation of an array concept in a macro language, e.g.
|
||||||
```sas
|
```sas
|
||||||
%array(ABC[17] (111:127), macarray=Y);
|
%array(ABC[17] (111:127), macarray=Y);
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ SHA256 digest for DFA: F*012375D87F66EB3A7BF5DDD0CC5AEE28851733EE33CC63231DF9045
|
|||||||
which = 1:H:2
|
which = 1:H:2
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
SHA256 digest for macroArray: F*3F3893F1FCD78719543703E4353F4CC19811D247C016F220FF729B283C1AD790
|
SHA256 digest for macroArray: F*C6C2B5507B6590365222FC764076E294CCE3AAE99971D9CAA942F8BAEBEFAE24
|
||||||
|
|
||||||
[Documentation for macroArray](https://github.com/SASPAC/blob/main/macroarray.md "Documentation for macroArray")
|
[Documentation for macroArray](https://github.com/SASPAC/blob/main/macroarray.md "Documentation for macroArray")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* 20260113 */
|
||||||
|
macroArray: F*C6C2B5507B6590365222FC764076E294CCE3AAE99971D9CAA942F8BAEBEFAE24
|
||||||
|
|
||||||
/* 20251122 */
|
/* 20251122 */
|
||||||
SQLinDS: F*606A24A2A6B06DAAD2D443FA9A9819D9564235A5CD8599FD15586F1EFFCB41BC
|
SQLinDS: F*606A24A2A6B06DAAD2D443FA9A9819D9564235A5CD8599FD15586F1EFFCB41BC
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Reference in New Issue
Block a user