diff --git a/README.md b/README.md index 599ef34..ef9ad5f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Don't forget to give the repository a **STAR** and become [stargazer](https://gi ### Current version: -**The latest version** of the **SAS Packages Framework** is **`20260125`**. +**The latest version** of the **SAS Packages Framework** is **`20260126`**. --- diff --git a/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf b/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf index 15a898e..002f75c 100644 Binary files a/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf and b/SPF/Documentation/SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf differ diff --git a/SPF/Macros/bundlePackages.sas b/SPF/Macros/bundlePackages.sas index 1058764..ebed5bf 100644 --- a/SPF/Macros/bundlePackages.sas +++ b/SPF/Macros/bundlePackages.sas @@ -8,7 +8,7 @@ ,packagesRef=packages ,ods= /* data set for report file */ )/ -des='Macro to create a bundle of SAS packages, version 20260125. Run %bundlePackages(HELP) for help info.' +des='Macro to create a bundle of SAS packages, version 20260126. Run %bundlePackages(HELP) for help info.' secure minoperator ; @@ -25,7 +25,7 @@ secure minoperator %put ### This is short help information for the `bundlePackages` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *create bundles* of SAS packages, version `20260125` #; + %put # Macro to *create bundles* of SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/extendpackagesfileref.sas b/SPF/Macros/extendpackagesfileref.sas index 33f9513..ad7cafb 100644 --- a/SPF/Macros/extendpackagesfileref.sas +++ b/SPF/Macros/extendpackagesfileref.sas @@ -6,7 +6,7 @@ when empty the "packages" value is used */ )/secure /*** HELP END ***/ -des = 'Macro to list directories pointed by "packages" fileref, version 20260125. Run %extendPackagesFileref(HELP) for help info.' +des = 'Macro to list directories pointed by "packages" fileref, version 20260126. Run %extendPackagesFileref(HELP) for help info.' ; %if %QUPCASE(&packages.) = HELP %then @@ -22,7 +22,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20260125 %put ### This is short help information for the `extendPackagesFileref` macro #; %put #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to list directories pointed by 'packages' fileref, version `20260125` #; + %put # Macro to list directories pointed by 'packages' fileref, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/generatepackage.sas b/SPF/Macros/generatepackage.sas index 9615ea4..d335920 100644 --- a/SPF/Macros/generatepackage.sas +++ b/SPF/Macros/generatepackage.sas @@ -3,7 +3,7 @@ Macro to generate SAS packages. - Version 20260125 + Version 20260126 A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -29,7 +29,7 @@ if more than one are provided only the first is used */ ,testResults= /* location where tests results should be stored, if null (the default) the WORK is used */ -,workInTestResults=0 /* indicates if WORK directories for tests should located +,workInTestResults=0 /* indicates if WORK directories for tests should be located in the same place as results */ ,testWorkPath= /* location where tests SAS sessions' work directories should be stored, if null (the default) the main SAS @@ -53,7 +53,7 @@ when empty takes buildLocation */ )/ secure minoperator /*** HELP END ***/ -des = 'Macro to generate SAS packages, version 20260125. Run %generatePackage() for help info.' +des = 'Macro to generate SAS packages, version 20260126. Run %generatePackage() for help info.' ; %if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then %do; @@ -68,7 +68,7 @@ des = 'Macro to generate SAS packages, version 20260125. Run %generatePackage() %put ### This is short help information for the `generatePackage` macro #; %put #------------------------------------------------------------------------------------#; %put # #; - %put # Macro to generate SAS packages, version `20260125` #; + %put # Macro to generate SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -262,13 +262,13 @@ filename &_LIC_. "&filesLocation./license.sas" lrecl = 1024; options &qlenmax_fstimer_tmp.; /* test for required descriptors */ - %if (%nrbquote(&packageName.) = ) - or (%nrbquote(&packageVersion.) = ) - or (%nrbquote(&packageAuthor.) = ) - or (%nrbquote(&packageMaintainer.) = ) - or (%nrbquote(&packageTitle.) = ) - or (%nrbquote(&packageEncoding.) = ) - or (%nrbquote(&packageLicense.) = ) + %if (%superq(packageName) = ) + or (%superq(packageVersion) = ) + or (%superq(packageAuthor) = ) + or (%superq(packageMaintainer) = ) + or (%superq(packageTitle) = ) + or (%superq(packageEncoding) = ) + or (%superq(packageLicense) = ) %then %do; %put ERROR: At least one of descriptors is missing!; @@ -950,7 +950,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_."; title&_titleNumber_. "Package ZIP file location is: &buildLocation."; %end; -footnote1 "SAS Packages Framework, version 20260125"; +footnote1 "SAS Packages Framework, version 20260126"; proc print data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent) @@ -1239,7 +1239,7 @@ data _null_; / ' /* print out setinit */ ' / ' proc setinit %str(;) run %str(;) ' / ' proc printto %str(;) run %str(;) ' - + / ' options ps=min %str(;) ' / ' data _null_ %str(;) ' / ' /* loadup checklist of required SAS components */ ' / ' if _n_ = 1 then ' @@ -1298,8 +1298,10 @@ data _null_; packageReqPackages = lowcase(symget('packageReqPackages')); /* try to load required packages */ - put 'data _null_ ; ' - / ' if "*" NE symget("cherryPick") then do; put "NOTE: No required packages loading."; stop; end; ' + put '%let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / 'options noNotes;' + / 'data _null_ ; ' + / ' if "*" NE symget("cherryPick") then do; put "INFO: No required packages loading."; stop; end; ' / ' length req name $ 64 vers verR $ 24 versN verRN 8 SYSloadedPackages $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' / ' do; ' @@ -1341,7 +1343,7 @@ data _null_; / ' if (LP_find ne 0) or (LP_find = 0 and . < versN < verRN) then ' / ' do; ' - / ' put "NOTE: Trying to load required SAS package: " req; ' + / ' put "INFO: Trying to load required SAS package: " req; ' / ' if LoadPackageExist then ' / ' call execute(cats(''%nrstr(%loadPackage('', name, ", requiredVersion = ", verR, "))")); ' / ' else if ICELoadPackageExist then ' @@ -1353,7 +1355,7 @@ data _null_; /* test if required packages are loaded */ / 'data _null_ ; ' - / ' if "*" NE symget("cherryPick") then do; put "NOTE: No required packages checking."; stop; end; ' + / ' if "*" NE symget("cherryPick") then do; put "INFO: No required packages checking."; stop; end; ' / ' length req name $ 64 vers verR $ 24 versN verRN 8 SYSloadedPackages $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' / ' do; ' @@ -1414,14 +1416,17 @@ data _null_; / ' end ; ' / ' end; ' / ' stop; ' - / 'run; '; + / 'run; ' + / 'options &temp_noNotes_etc.;'; %end; %if (%superq(packageRequired) ne ) or (%superq(packageReqPackages) ne ) %then %do; - put ' data _null_; ' + put ' %let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / ' options noNotes;' + / ' data _null_; ' / ' if 1 = symgetn("packageRequiredErrors") then ' / ' do; ' / ' put "ERROR: Loading package &packageName. will be aborted!";' @@ -1436,7 +1441,8 @@ data _null_; / ' else ' / ' call symputX("packageRequiredErrors", " ", "L");' / ' run; ' - / ' &packageRequiredErrors. '; + / ' &packageRequiredErrors. ' + / ' options &temp_noNotes_etc.; '; %end; @@ -1769,7 +1775,7 @@ data _null_; %end; put +(-1) '`.;''' / ' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' - / ' !! '' %put with the SAS Packages Framework version 20260125.;''' + / ' !! '' %put with the SAS Packages Framework version 20260126.;''' / ' !! '' %put ****************************************************************************;''' / ' !! '' %GOTO theEndOfTheMacro;''' / ' !! '' %end;''' ; @@ -1933,7 +1939,7 @@ data _null_; %end; put +(-1) '`.; '' !!' / ''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !! ' / - ''' %put with the SAS Packages Framework version 20260125.; '' !! ' / + ''' %put with the SAS Packages Framework version 20260126.; '' !! ' / ''' %put ****************************************************************************; '' !! ' / ''' %GOTO theEndOfTheMacro; '' !! ' / ''' %end; '' !! ' / @@ -2149,6 +2155,65 @@ data _null_; put 'run;'; /* KMF -------------------------------------------------------------------------------- end */ + /*=add meta function========================================================================*/ + isFunction+1; + + length packageName $ 32 packageVersion packageGenerated $ 24 + packageTitle packageAuthor packageMaintainer $ 2048 + packageEncoding $ 8 packageLicense $ 128; + packageName = quote(strip(symget('packageName')),'"'); + packageVersion = quote(strip(symget('packageVersion')),'"'); + packageTitle = quote(strip(symget('packageTitle')),'"'); + packageAuthor = quote(strip(symget('packageAuthor')),'"'); + packageMaintainer = quote(strip(symget('packageMaintainer')),'"'); + packageEncoding = quote(strip(symget('packageEncoding')),'"'); + packageLicense = quote(strip(symget('packageLicense')),'"'); + packageGenerated = quote(strip(symget('packageGenerated')),'"'); + /* add quotes to hide special characters */ + %if (%superq(packageReqPackages) ne ) %then /* required packages list */ + %do; + packageReqPackages = quote(strip(packageReqPackages)); + %end; + %if (%superq(packageRequired) ne ) %then /* required SAS products */ + %do; + packageRequired = quote(strip(packageRequired)); + %end; + + put "proc fcmp outlib = work.&packageName.fcmp.packagemeta ; " + / " function &packageName.META(meta $) $ 32767;" + / ' m = char(upcase(meta),1);' + / " if m = 'V' then return(strip(" packageVersion +(-1) "));" + / " if m = 'D' then return(strip(" packageGenerated +(-1) "));" + / " if m = 'A' then return(strip(" packageAuthor +(-1) "));" + / " if m = 'M' then return(strip(" packageMaintainer +(-1) "));" + / " if m = 'T' then return(strip(" packageTitle +(-1) "));" + / " if m = 'E' then return(strip(" packageEncoding +(-1) "));" + / " if m = 'L' then return(strip(" packageGenerated +(-1) "));" + %if (%superq(packageReqPackages) ne ) %then /* required packages list */ + %do; + / " if m = 'P' then return(strip(" packageReqPackages +(-1) "));" + %end; + %if (%superq(packageRequired) ne ) %then /* required SAS products */ + %do; + / " if m = 'S' then return(strip(" packageRequired +(-1) "));" + %end; + / ' return(" ");' + / ' endfunc;' + / 'quit;'; + + put '%sysfunc(ifc(0<' + / ' %sysfunc(findw((%sysfunc(getoption(cmplib)))' + / " ,work.%sysfunc(lowcase(&packageName.fcmp)),""'( )'"",RIO))" + / ',,%str(options' " APPEND=(cmplib = work.%sysfunc(lowcase(&packageName.fcmp)));)" + / '))' ; + + put '%macro ' "&packageName.META(meta)/parmbuff;" /* returned values are quoted to mask special chars*/ + / '%if %superq(meta) = %then %return;' + / '%do;%qsysfunc(strip(%qsysfunc(' "&packageName.META" '&syspbuff.)))%end;' + / '%mend;' / /; + + /*==========================================================================================*/ + /* list cmplib for functions and fmtsearch for formats*/ if isFunction OR isProto then do; @@ -2162,8 +2227,10 @@ data _null_; end; /* update SYSloadedPackages global macrovariable */ - put 'options noNotes;' - / '%if (%str(*)=%superq(cherryPick)) %then %do; ' /* Cherry Pick test3 start */ + + put '%if (%str(*)=%superq(cherryPick)) %then %do; ' /* Cherry Pick test3 start */ + / ' %let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / ' options noNotes;' / ' data _null_ ; ' / ' length SYSloadedPackages stringPCKG $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' @@ -2180,7 +2247,7 @@ data _null_; / " SYSloadedPackages = catx('#', SYSloadedPackages, '&packageName.(&packageVersion.)'); " / ' SYSloadedPackages = compbl(translate(SYSloadedPackages, " ", "#")); ' / ' call symputX("SYSloadedPackages", SYSloadedPackages, "G"); ' - / ' put / "INFO:[SYSLOADEDPACKAGES] " SYSloadedPackages ; ' + / ' put / "INFO: [SYSLOADEDPACKAGES] " SYSloadedPackages ; ' / ' end ; ' / " else " / ' do; ' @@ -2189,21 +2256,22 @@ data _null_; / " SYSloadedPackages = catx('#', SYSloadedPackages, '&packageName.(&packageVersion.)'); " / ' SYSloadedPackages = compbl(translate(SYSloadedPackages, " ", "#")); ' / ' call symputX("SYSloadedPackages", SYSloadedPackages, "G"); ' - / ' put / "INFO:[SYSLOADEDPACKAGES] " SYSloadedPackages ; ' + / ' put / "INFO: [SYSLOADEDPACKAGES] " SYSloadedPackages ; ' / ' end ; ' / ' end; ' / ' else ' / ' do; ' / " call symputX('SYSloadedPackages', '&packageName.(&packageVersion.)', 'G'); " - / " put / 'INFO:[SYSLOADEDPACKAGES] &packageName.(&packageVersion.)'; " + / " put / 'INFO: [SYSLOADEDPACKAGES] &packageName.(&packageVersion.)'; " / ' end; ' / ' stop; ' / ' run; ' + / ' options &temp_noNotes_etc.;' / '%end; ' / ; /* Cherry Pick test3 end */ put 'options NOTES;' / '%put NOTE- ;' - / '%put NOTE: '"Loading package &packageName., version &packageVersion., license &packageLicense.;" + / '%put NOTE: '"Loading package &packageName., version "'%'"&packageName.META(V), license &packageLicense.;" / '%put NOTE- *** END ***;' /; put 'options &temp_noNotes_etc.;' @@ -2314,7 +2382,8 @@ data _null_; / ' from dictionary.catalogs' / ' where ' / ' (' - / ' objname in ("*"' + / ' objname in ("*"' + / " ,%UPCASE('&packageName.META')" / " ,%UPCASE('&packageName.IML')" / " ,%UPCASE('&packageName.CASLUDF')"; /* list of macros */ @@ -2416,7 +2485,12 @@ data _null_; / 'deletefunc ' fileshort ';'; isFunction + 1; end; - put "run;" /; + put "quit;" /; + + put "proc fcmp outlib = work.&packageName.fcmp.packagemeta;" + / "deletefunc &packageName.META;" + / "quit;" /; + isFunction + 1; /* delete the link to the functions dataset */ if isFunction then @@ -2736,7 +2810,7 @@ data _null_; %end; put 'put " " / @3 "---------------------------------------------------------------------" / " ";' - / 'put @3 "*SAS package generated by SAS Package Framework, version `20260125`*";' + / 'put @3 "*SAS package generated by SAS Package Framework, version `20260126`*";' / "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';" / "put @3 '*using SAS release: `&sysvlong4.`.*';" / 'put " " / @3 "---------------------------------------------------------------------";'; diff --git a/SPF/Macros/helppackage.sas b/SPF/Macros/helppackage.sas index 9591f78..44e0acf 100644 --- a/SPF/Macros/helppackage.sas +++ b/SPF/Macros/helppackage.sas @@ -28,7 +28,7 @@ */ )/secure /*** HELP END ***/ -des = 'Macro to get help about SAS package, version 20260125. Run %helpPackage() for help info.' +des = 'Macro to get help about SAS package, version 20260126. Run %helpPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -43,7 +43,7 @@ des = 'Macro to get help about SAS package, version 20260125. Run %helpPackage() %put ### This is short help information for the `helpPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to get help about SAS packages, version `20260125` #; + %put # Macro to get help about SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/installpackage.sas b/SPF/Macros/installpackage.sas index fd00309..b77f7ad 100644 --- a/SPF/Macros/installpackage.sas +++ b/SPF/Macros/installpackage.sas @@ -1,5 +1,5 @@ /*+installPackage+*/ -/* Macros to install SAS packages, version 20260125 */ +/* Macros to install SAS packages, version 20260126 */ /* A SAS package is a zip file containing a group of files with SAS code (macros, functions, data steps generating data, etc.) wrapped up together and %INCLUDEed by @@ -26,7 +26,7 @@ /secure minoperator /*** HELP END ***/ -des = 'Macro to install SAS package, version 20260125. Run %%installPackage() for help info.' +des = 'Macro to install SAS package, version 20260126. Run %%installPackage() for help info.' ; %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then %do; @@ -41,7 +41,7 @@ des = 'Macro to install SAS package, version 20260125. Run %%installPackage() fo %put ### This is short help information for the `installPackage` macro #; %put #--------------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to install SAS packages, version `20260125` #; + %put # Macro to install SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/ispackagesfilerefok.sas b/SPF/Macros/ispackagesfilerefok.sas index 3772e24..fb35d85 100644 --- a/SPF/Macros/ispackagesfilerefok.sas +++ b/SPF/Macros/ispackagesfilerefok.sas @@ -4,7 +4,7 @@ vERRb /* indicates if macro should be verbose and report errors */ ) / minoperator PARMBUFF -des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260125.' +des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260126.' ; /*** HELP END ***/ %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 #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to check if the `packages` fileref is "correct", version `20260125` #; + %put # Macro to check if the `packages` fileref is "correct", version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/listpackages.sas b/SPF/Macros/listpackages.sas index 52615ce..6890beb 100644 --- a/SPF/Macros/listpackages.sas +++ b/SPF/Macros/listpackages.sas @@ -3,7 +3,7 @@ Macro to list SAS packages in packages folder. - Version 20260125 + Version 20260126 A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -21,9 +21,11 @@ *//*** HELP END ***/ -%macro listPackages(listDataSet, quiet=0) -/ secure PARMBUFF -des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260125.' +%macro listPackages( + listDataSet /* Name of a data set to save results */ +, 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 20260126.' ; %if (%QUPCASE(&listDataSet.) = HELP) %then %do; @@ -38,7 +40,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE %put ### This is short help information for the `listPackages` macro #; %put #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to list available SAS packages, version `20260125` #; + %put # Macro to list available SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/loadpackage.sas b/SPF/Macros/loadpackage.sas index 31f071b..304ad40 100644 --- a/SPF/Macros/loadpackage.sas +++ b/SPF/Macros/loadpackage.sas @@ -36,7 +36,7 @@ */ )/secure /*** HELP END ***/ -des = 'Macro to load SAS package, version 20260125. Run %loadPackage() for help info.' +des = 'Macro to load SAS package, version 20260126. Run %loadPackage() for help info.' minoperator ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then @@ -52,7 +52,7 @@ minoperator %put ### This is short help information for the `loadPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *load* SAS packages, version `20260125` #; + %put # Macro to *load* SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/loadpackageaddcnt.sas b/SPF/Macros/loadpackageaddcnt.sas index 4c9c31e..3be553c 100644 --- a/SPF/Macros/loadpackageaddcnt.sas +++ b/SPF/Macros/loadpackageaddcnt.sas @@ -19,7 +19,7 @@ is provided in required version */ )/secure /*** HELP END ***/ -des = 'Macro to load additional content for a SAS package, version 20260125. Run %loadPackageAddCnt() for help info.' +des = 'Macro to load additional content for a SAS package, version 20260126. Run %loadPackageAddCnt() for help info.' minoperator ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then @@ -35,7 +35,7 @@ minoperator %put ### This is short help information for the `loadPackageAddCnt` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *load* additional content for a SAS package, version `20260125` #; + %put # Macro to *load* additional content for a SAS package, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/loadpackages.sas b/SPF/Macros/loadpackages.sas index 2713c27..b72987c 100644 --- a/SPF/Macros/loadpackages.sas +++ b/SPF/Macros/loadpackages.sas @@ -11,7 +11,7 @@ */ )/secure /*** HELP END ***/ -des = 'Macro to load multiple SAS packages at one run, version 20260125. Run %loadPackages() for help info.' +des = 'Macro to load multiple SAS packages at one run, version 20260126. Run %loadPackages() for help info.' parmbuff ; %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then @@ -27,7 +27,7 @@ parmbuff %put ### This is short help information for the `loadPackageS` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro wrapper for the loadPackage macro, version `20260125` #; + %put # Macro wrapper for the loadPackage macro, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/previewpackage.sas b/SPF/Macros/previewpackage.sas index 55ff273..d9913de 100644 --- a/SPF/Macros/previewpackage.sas +++ b/SPF/Macros/previewpackage.sas @@ -23,7 +23,7 @@ */ )/secure /*** HELP END ***/ -des = 'Macro to preview content of a SAS package, version 20260125. Run %previewPackage() for help info.' +des = 'Macro to preview content of a SAS package, version 20260126. Run %previewPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -38,7 +38,7 @@ des = 'Macro to preview content of a SAS package, version 20260125. Run %preview %put ### This is short help information for the `previewPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to get preview of a SAS packages, version `20260125` #; + %put # Macro to get preview of a SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/relocatepackage.sas b/SPF/Macros/relocatepackage.sas index e6037f9..d130379 100644 --- a/SPF/Macros/relocatepackage.sas +++ b/SPF/Macros/relocatepackage.sas @@ -15,7 +15,7 @@ ,psMAX=MAX /* pageSise in case executed inside DoSubL() */ ,ods= /* a data set for results, e.g., work.relocatePackageReport */ ) -/ des = 'Utility macro that locally Copies or Moves Packages, version 20260125. Run %relocatePackage() for help info.' +/ des = 'Utility macro that locally Copies or Moves Packages, version 20260126. Run %relocatePackage() for help info.' secure minoperator ; @@ -33,7 +33,7 @@ %put ### This is short help information for the `relocatePackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *locally copy or move* (relocate) SAS packages, version `20260125` #; + %put # Macro to *locally copy or move* (relocate) SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/saspackagesframeworknotes.sas b/SPF/Macros/saspackagesframeworknotes.sas index c57e3c1..c4efc7f 100644 --- a/SPF/Macros/saspackagesframeworknotes.sas +++ b/SPF/Macros/saspackagesframeworknotes.sas @@ -5,7 +5,7 @@ SPFmacroName /* space separated list of names */ / minoperator secure -des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260125. Run %SasPackagesFrameworkNotes(HELP) for help info.' +des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260126. Run %SasPackagesFrameworkNotes(HELP) for help info.' ; %local list N i element; %let list= @@ -51,7 +51,7 @@ SasPackagesFrameworkNotes %put ### This is short help information for the `SasPackagesFrameworkNotes` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro prints help notes for SAS Packages Framework macros, version `20260125` #; + %put # Macro prints help notes for SAS Packages Framework macros, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/spfint_gnpckg_arch.sas b/SPF/Macros/spfint_gnpckg_arch.sas index 6d06a09..2bf5622 100644 --- a/SPF/Macros/spfint_gnpckg_arch.sas +++ b/SPF/Macros/spfint_gnpckg_arch.sas @@ -1,6 +1,6 @@ /*+SPFint_gnPckg_arch+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; diff --git a/SPF/Macros/spfint_gnpckg_markdown.sas b/SPF/Macros/spfint_gnpckg_markdown.sas index 4c9c563..6dc7532 100644 --- a/SPF/Macros/spfint_gnpckg_markdown.sas +++ b/SPF/Macros/spfint_gnpckg_markdown.sas @@ -1,6 +1,6 @@ /*+SPFint_gnPckg_markdown+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; @@ -112,7 +112,7 @@ data &filesWithCodes.markdown; %end; put " " / "---------------------------------------------------------------------" / " " - / "*SAS package generated by SAS Package Framework, version `20260125`,*" + / "*SAS package generated by SAS Package Framework, version `20260126`,*" / "*under `&sysscp.`(`&sysscpl.`) operating system,*" / "*using SAS release: `&sysvlong4.`.*" / " " / "---------------------------------------------------------------------" / " "; diff --git a/SPF/Macros/spfint_gnpckg_tests.sas b/SPF/Macros/spfint_gnpckg_tests.sas index f4208ba..d4693db 100644 --- a/SPF/Macros/spfint_gnpckg_tests.sas +++ b/SPF/Macros/spfint_gnpckg_tests.sas @@ -1,6 +1,6 @@ /*+SPFint_gnPckg_tests+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; @@ -73,6 +73,18 @@ run; put @n '%loadpackage'"(&packageName.,"; put @n " path=&buildLocation., lazyData=*)" /; + /* meta */ + put @n '%put >>>%'"&packageName."'META( )<<<;'/ + @n '%put >>>%'"&packageName."'META(V)<<<;'/ + @n '%put >>>%'"&packageName."'META(D)<<<;'/ + @n '%put >>>%'"&packageName."'META(A)<<<;'/ + @n '%put >>>%'"&packageName."'META(M)<<<;'/ + @n '%put >>>%'"&packageName."'META(L)<<<;'/ + @n '%put >>>%'"&packageName."'META(E)<<<;'/ + @n '%put >>>%'"&packageName."'META(T)<<<;'/ + @n '%put >>>%'"&packageName."'META(P)<<<;'/ + @n '%put >>>%'"&packageName."'META(S)<<<;'/; + /* help */ put @n '%helpPackage'"(&packageName.,"; put @n " path=&buildLocation.)" /; @@ -292,6 +304,19 @@ data _null_; put '%loadpackage'"(&packageName.," / " path=&buildLocation., lazyData=*)" /; + /* meta */ + put '%put >>null >%'"&packageName."'META( )<<<;'/ + '%put >>unknown >%'"&packageName."'META(U)<<<;'/ /* test for unknown values */ + '%put >>version >%'"&packageName."'META(V)<<<;'/ + '%put >>datetime >%'"&packageName."'META(D)<<<;'/ + '%put >>authors >%'"&packageName."'META(A)<<<;'/ + '%put >>maintainers >%'"&packageName."'META(M)<<<;'/ + '%put >>license >%'"&packageName."'META(L)<<<;'/ + '%put >>encoding >%'"&packageName."'META(E)<<<;'/ + '%put >>title >%'"&packageName."'META(T)<<<;'/ + '%put >>req packages>%'"&packageName."'META(P)<<<;'/ + '%put >>req SAS >%'"&packageName."'META(S)<<<;'/; + /* help */ put '%helpPackage'"(&packageName.," / " path=&buildLocation.)" /; diff --git a/SPF/Macros/splitcodeforpackage.sas b/SPF/Macros/splitcodeforpackage.sas index e66b80f..2258ad3 100644 --- a/SPF/Macros/splitcodeforpackage.sas +++ b/SPF/Macros/splitcodeforpackage.sas @@ -8,7 +8,7 @@ ,nobs=0 /* technical parameter */ ) /*** HELP END ***/ -/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260125. Run %splitCodeForPackage() for help info.' +/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260126. Run %splitCodeForPackage() for help info.' ; %if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then %do; @@ -24,7 +24,7 @@ %put #-------------------------------------------------------------------------------#; %put # #; %put # Utility macro to *split* single file with SAS package code into multiple #; - %put # files with separate snippets, version `20260125` #; + %put # files with separate snippets, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %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 do; - put '/* File generated with help of SAS Packages Framework, version 20260125. */'; + put '/* File generated with help of SAS Packages Framework, version 20260126. */'; firstLine[j]=0; end; put _infile_; diff --git a/SPF/Macros/unbundlePackages.sas b/SPF/Macros/unbundlePackages.sas index fd07f80..98057a4 100644 --- a/SPF/Macros/unbundlePackages.sas +++ b/SPF/Macros/unbundlePackages.sas @@ -8,7 +8,7 @@ ,ods= /* data set for report file */ ,verify=0 )/ -des='Macro to extract a bundle of SAS packages, version 20260125. Run %unbundlePackages(HELP) for help info.' +des='Macro to extract a bundle of SAS packages, version 20260126. Run %unbundlePackages(HELP) for help info.' secure minoperator ; @@ -26,7 +26,7 @@ minoperator %put ### This is short help information for the `unbundlePackages` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *extract* SAS packages from a bundle, version `20260125` #; + %put # Macro to *extract* SAS packages from a bundle, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/unloadpackage.sas b/SPF/Macros/unloadpackage.sas index 6f89a64..7b73d35 100644 --- a/SPF/Macros/unloadpackage.sas +++ b/SPF/Macros/unloadpackage.sas @@ -20,7 +20,7 @@ */ )/secure /*** HELP END ***/ -des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for help info.' +des = 'Macro to unload SAS package, version 20260126. Run %unloadPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -35,7 +35,7 @@ des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for h %put ### This is short help information for the `unloadPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to unload SAS packages, version `20260125` #; + %put # Macro to unload SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/Macros/verifypackage.sas b/SPF/Macros/verifypackage.sas index e90ac7e..c643734 100644 --- a/SPF/Macros/verifypackage.sas +++ b/SPF/Macros/verifypackage.sas @@ -13,7 +13,7 @@ hashing_file() function, SAS 9.4M6 */ )/secure /*** HELP END ***/ -des = 'Macro to verify SAS package with the hash digest, version 20260125. Run %verifyPackage() for help info.' +des = 'Macro to verify SAS package with the hash digest, version 20260126. Run %verifyPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -28,7 +28,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20260125. Run % %put ### This is short help information for the `verifyPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to verify SAS package with it hash digest, version `20260125` #; + %put # Macro to verify SAS package with it hash digest, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/SPF/SPFinit.md b/SPF/SPFinit.md index 94ccf80..58d454a 100644 --- a/SPF/SPFinit.md +++ b/SPF/SPFinit.md @@ -1,7 +1,7 @@ --- -# SAS Packages Framework, version `20260125` +# SAS Packages Framework, version `20260126` --- @@ -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. -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`**. +In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20260126`**. **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 -------------------------------------------------------------------------------------------- - Macro to install SAS packages, version `20260125` + Macro to install SAS packages, version `20260126` A SAS package is a zip file containing a group 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 ------------------------------------------------------------------------------- - Macro to get help about SAS packages, version `20260125` + Macro to get help about SAS packages, version `20260126` A SAS package is a zip file containing a group 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 ------------------------------------------------------------------------------- - Macro to *load* SAS packages, version `20260125` + Macro to *load* SAS packages, version `20260126` A SAS package is a zip file containing a group 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 ------------------------------------------------------------------------------- - Macro wrapper for the loadPackage macro, version `20260125` + Macro wrapper for the loadPackage macro, version `20260126` A SAS package is a zip file containing a group 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 ------------------------------------------------------------------------------- - Macro to unload SAS packages, version `20260125` + Macro to unload SAS packages, version `20260126` A SAS package is a zip file containing a group 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 ----------------------------------------------------------------------------------------- - Macro to list available SAS packages, version `20260125` + Macro to list available SAS packages, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -588,7 +588,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `verifyPackage` macro ------------------------------------------------------------------------------- - Macro to verify SAS package with it hash digest, version `20260125` + Macro to verify SAS package with it hash digest, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -642,7 +642,7 @@ filename packages "C:/SAS_PACKAGES"; %* set-up a directory for packages; ## This is short help information for the `previewPackage` macro ------------------------------------------------------------------------------- - Macro to get preview of a SAS packages, version `20260125` + Macro to get preview of a SAS packages, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -711,7 +711,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `generatePackage` macro ------------------------------------------------------------------------------- - Macro to generate SAS packages, version `20260125` + Macro to generate SAS packages, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -944,7 +944,7 @@ All files have to have `.sas` extension. Other files are ignored. ## This is short help information for the `extendPackagesFileref` macro ----------------------------------------------------------------------------------------- - Macro to list directories pointed by 'packages' fileref, version `20260125` + Macro to list directories pointed by 'packages' fileref, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -986,7 +986,7 @@ filename packages ("D:/NEW_DIR" %extendPackagesFileref()); %* add new directory; ## This is short help information for the `loadPackageAddCnt` macro ------------------------------------------------------------------------------- - Macro to load *additional content* for a SAS package, version `20260125` + Macro to load *additional content* for a SAS package, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1080,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 - files with separate snippets, version `20260125` + files with separate snippets, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1161,7 +1161,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `relocatePackage` macro ------------------------------------------------------------------------------- - Macro to *locally copy or move* (relocate) SAS packages, version `20260125` + Macro to *locally copy or move* (relocate) SAS packages, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1273,7 +1273,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `isPackagesFilerefOK` macro ----------------------------------------------------------------------------------------- - Macro to check if the `packages` fileref is "correct", version `20260125` + Macro to check if the `packages` fileref is "correct", version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1324,7 +1324,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `SasPackagesFrameworkNotes` macro ------------------------------------------------------------------------------- - Macro prints help notes for SAS Packages Framework macros, version `20260125` + Macro prints help notes for SAS Packages Framework macros, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1374,7 +1374,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `bundlePackages` macro ------------------------------------------------------------------------------- - Macro to *create bundles* of SAS packages, version `20260125` + Macro to *create bundles* of SAS packages, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1443,7 +1443,7 @@ filename packages "C:/SAS_PACKAGES"; %* setup a directory for packages; ## This is short help information for the `unbundlePackages` macro ------------------------------------------------------------------------------- - Macro to *extract* SAS packages from a bundle, version `20260125` + Macro to *extract* SAS packages from a bundle, version `20260126` A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating diff --git a/SPF/SPFinit.sas b/SPF/SPFinit.sas index 8c60412..a0b12f1 100644 --- a/SPF/SPFinit.sas +++ b/SPF/SPFinit.sas @@ -43,7 +43,7 @@ - to unload, or - to generate SAS packages. - Version 20260125. + Version 20260126. See examples below. A SAS package is a zip file containing a group of files @@ -101,7 +101,7 @@ Contributors: */ )/secure /*** HELP END ***/ -des = 'Macro to load SAS package, version 20260125. Run %loadPackage() for help info.' +des = 'Macro to load SAS package, version 20260126. Run %loadPackage() for help info.' minoperator ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then @@ -117,7 +117,7 @@ minoperator %put ### This is short help information for the `loadPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *load* SAS packages, version `20260125` #; + %put # Macro to *load* SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -394,7 +394,7 @@ minoperator */ )/secure /*** HELP END ***/ -des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for help info.' +des = 'Macro to unload SAS package, version 20260126. Run %unloadPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -409,7 +409,7 @@ des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for h %put ### This is short help information for the `unloadPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to unload SAS packages, version `20260125` #; + %put # Macro to unload SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -562,7 +562,7 @@ des = 'Macro to unload SAS package, version 20260125. Run %unloadPackage() for h */ )/secure /*** HELP END ***/ -des = 'Macro to get help about SAS package, version 20260125. Run %helpPackage() for help info.' +des = 'Macro to get help about SAS package, version 20260126. Run %helpPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -577,7 +577,7 @@ des = 'Macro to get help about SAS package, version 20260125. Run %helpPackage() %put ### This is short help information for the `helpPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to get help about SAS packages, version `20260125` #; + %put # Macro to get help about SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -720,7 +720,7 @@ TODO: */ /*+installPackage+*/ -/* Macros to install SAS packages, version 20260125 */ +/* Macros to install SAS packages, version 20260126 */ /* A SAS package is a zip file containing a group of files with SAS code (macros, functions, data steps generating data, etc.) wrapped up together and %INCLUDEed by @@ -747,7 +747,7 @@ TODO: /secure minoperator /*** HELP END ***/ -des = 'Macro to install SAS package, version 20260125. Run %%installPackage() for help info.' +des = 'Macro to install SAS package, version 20260126. Run %%installPackage() for help info.' ; %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then %do; @@ -762,7 +762,7 @@ des = 'Macro to install SAS package, version 20260125. Run %%installPackage() fo %put ### This is short help information for the `installPackage` macro #; %put #--------------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to install SAS packages, version `20260125` #; + %put # Macro to install SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -1414,7 +1414,7 @@ des = 'Macro to install SAS package, version 20260125. Run %%installPackage() fo Macro to list SAS packages in packages folder. - Version 20260125 + Version 20260126 A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1436,7 +1436,7 @@ des = 'Macro to install SAS package, version 20260125. Run %%installPackage() fo listDataSet /* Name of a data set to save results */ , 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.' +des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20260126.' ; %if (%QUPCASE(&listDataSet.) = HELP) %then %do; @@ -1451,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 #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to list available SAS packages, version `20260125` #; + %put # Macro to list available SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -1677,7 +1677,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.; Macro to generate SAS packages. - Version 20260125 + Version 20260126 A SAS package is a zip file containing a group of SAS codes (macros, functions, data steps generating @@ -1703,7 +1703,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.; if more than one are provided only the first is used */ ,testResults= /* location where tests results should be stored, if null (the default) the WORK is used */ -,workInTestResults=0 /* indicates if WORK directories for tests should located +,workInTestResults=0 /* indicates if WORK directories for tests should be located in the same place as results */ ,testWorkPath= /* location where tests SAS sessions' work directories should be stored, if null (the default) the main SAS @@ -1727,7 +1727,7 @@ options ls = &ls_tmp. ps = &ps_tmp. ¬es_tmp. &source_tmp.; when empty takes buildLocation */ )/ secure minoperator /*** HELP END ***/ -des = 'Macro to generate SAS packages, version 20260125. Run %generatePackage() for help info.' +des = 'Macro to generate SAS packages, version 20260126. Run %generatePackage() for help info.' ; %if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then %do; @@ -1742,7 +1742,7 @@ des = 'Macro to generate SAS packages, version 20260125. Run %generatePackage() %put ### This is short help information for the `generatePackage` macro #; %put #------------------------------------------------------------------------------------#; %put # #; - %put # Macro to generate SAS packages, version `20260125` #; + %put # Macro to generate SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -1936,13 +1936,13 @@ filename &_LIC_. "&filesLocation./license.sas" lrecl = 1024; options &qlenmax_fstimer_tmp.; /* test for required descriptors */ - %if (%nrbquote(&packageName.) = ) - or (%nrbquote(&packageVersion.) = ) - or (%nrbquote(&packageAuthor.) = ) - or (%nrbquote(&packageMaintainer.) = ) - or (%nrbquote(&packageTitle.) = ) - or (%nrbquote(&packageEncoding.) = ) - or (%nrbquote(&packageLicense.) = ) + %if (%superq(packageName) = ) + or (%superq(packageVersion) = ) + or (%superq(packageAuthor) = ) + or (%superq(packageMaintainer) = ) + or (%superq(packageTitle) = ) + or (%superq(packageEncoding) = ) + or (%superq(packageLicense) = ) %then %do; %put ERROR: At least one of descriptors is missing!; @@ -2624,7 +2624,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_."; title&_titleNumber_. "Package ZIP file location is: &buildLocation."; %end; -footnote1 "SAS Packages Framework, version 20260125"; +footnote1 "SAS Packages Framework, version 20260126"; proc print data = &filesWithCodes.(drop=base build folderRef fileRef rc folderid _abort_ fileId additionalContent) @@ -2913,7 +2913,7 @@ data _null_; / ' /* print out setinit */ ' / ' proc setinit %str(;) run %str(;) ' / ' proc printto %str(;) run %str(;) ' - + / ' options ps=min %str(;) ' / ' data _null_ %str(;) ' / ' /* loadup checklist of required SAS components */ ' / ' if _n_ = 1 then ' @@ -2972,8 +2972,10 @@ data _null_; packageReqPackages = lowcase(symget('packageReqPackages')); /* try to load required packages */ - put 'data _null_ ; ' - / ' if "*" NE symget("cherryPick") then do; put "NOTE: No required packages loading."; stop; end; ' + put '%let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / 'options noNotes;' + / 'data _null_ ; ' + / ' if "*" NE symget("cherryPick") then do; put "INFO: No required packages loading."; stop; end; ' / ' length req name $ 64 vers verR $ 24 versN verRN 8 SYSloadedPackages $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' / ' do; ' @@ -3015,7 +3017,7 @@ data _null_; / ' if (LP_find ne 0) or (LP_find = 0 and . < versN < verRN) then ' / ' do; ' - / ' put "NOTE: Trying to load required SAS package: " req; ' + / ' put "INFO: Trying to load required SAS package: " req; ' / ' if LoadPackageExist then ' / ' call execute(cats(''%nrstr(%loadPackage('', name, ", requiredVersion = ", verR, "))")); ' / ' else if ICELoadPackageExist then ' @@ -3027,7 +3029,7 @@ data _null_; /* test if required packages are loaded */ / 'data _null_ ; ' - / ' if "*" NE symget("cherryPick") then do; put "NOTE: No required packages checking."; stop; end; ' + / ' if "*" NE symget("cherryPick") then do; put "INFO: No required packages checking."; stop; end; ' / ' length req name $ 64 vers verR $ 24 versN verRN 8 SYSloadedPackages $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' / ' do; ' @@ -3088,14 +3090,17 @@ data _null_; / ' end ; ' / ' end; ' / ' stop; ' - / 'run; '; + / 'run; ' + / 'options &temp_noNotes_etc.;'; %end; %if (%superq(packageRequired) ne ) or (%superq(packageReqPackages) ne ) %then %do; - put ' data _null_; ' + put ' %let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / ' options noNotes;' + / ' data _null_; ' / ' if 1 = symgetn("packageRequiredErrors") then ' / ' do; ' / ' put "ERROR: Loading package &packageName. will be aborted!";' @@ -3110,7 +3115,8 @@ data _null_; / ' else ' / ' call symputX("packageRequiredErrors", " ", "L");' / ' run; ' - / ' &packageRequiredErrors. '; + / ' &packageRequiredErrors. ' + / ' options &temp_noNotes_etc.; '; %end; @@ -3443,7 +3449,7 @@ data _null_; %end; put +(-1) '`.;''' / ' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' - / ' !! '' %put with the SAS Packages Framework version 20260125.;''' + / ' !! '' %put with the SAS Packages Framework version 20260126.;''' / ' !! '' %put ****************************************************************************;''' / ' !! '' %GOTO theEndOfTheMacro;''' / ' !! '' %end;''' ; @@ -3607,7 +3613,7 @@ data _null_; %end; put +(-1) '`.; '' !!' / ''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !! ' / - ''' %put with the SAS Packages Framework version 20260125.; '' !! ' / + ''' %put with the SAS Packages Framework version 20260126.; '' !! ' / ''' %put ****************************************************************************; '' !! ' / ''' %GOTO theEndOfTheMacro; '' !! ' / ''' %end; '' !! ' / @@ -3823,6 +3829,65 @@ data _null_; put 'run;'; /* KMF -------------------------------------------------------------------------------- end */ + /*=add meta function========================================================================*/ + isFunction+1; + + length packageName $ 32 packageVersion packageGenerated $ 24 + packageTitle packageAuthor packageMaintainer $ 2048 + packageEncoding $ 8 packageLicense $ 128; + packageName = quote(strip(symget('packageName')),'"'); + packageVersion = quote(strip(symget('packageVersion')),'"'); + packageTitle = quote(strip(symget('packageTitle')),'"'); + packageAuthor = quote(strip(symget('packageAuthor')),'"'); + packageMaintainer = quote(strip(symget('packageMaintainer')),'"'); + packageEncoding = quote(strip(symget('packageEncoding')),'"'); + packageLicense = quote(strip(symget('packageLicense')),'"'); + packageGenerated = quote(strip(symget('packageGenerated')),'"'); + /* add quotes to hide special characters */ + %if (%superq(packageReqPackages) ne ) %then /* required packages list */ + %do; + packageReqPackages = quote(strip(packageReqPackages)); + %end; + %if (%superq(packageRequired) ne ) %then /* required SAS products */ + %do; + packageRequired = quote(strip(packageRequired)); + %end; + + put "proc fcmp outlib = work.&packageName.fcmp.packagemeta ; " + / " function &packageName.META(meta $) $ 32767;" + / ' m = char(upcase(meta),1);' + / " if m = 'V' then return(strip(" packageVersion +(-1) "));" + / " if m = 'D' then return(strip(" packageGenerated +(-1) "));" + / " if m = 'A' then return(strip(" packageAuthor +(-1) "));" + / " if m = 'M' then return(strip(" packageMaintainer +(-1) "));" + / " if m = 'T' then return(strip(" packageTitle +(-1) "));" + / " if m = 'E' then return(strip(" packageEncoding +(-1) "));" + / " if m = 'L' then return(strip(" packageGenerated +(-1) "));" + %if (%superq(packageReqPackages) ne ) %then /* required packages list */ + %do; + / " if m = 'P' then return(strip(" packageReqPackages +(-1) "));" + %end; + %if (%superq(packageRequired) ne ) %then /* required SAS products */ + %do; + / " if m = 'S' then return(strip(" packageRequired +(-1) "));" + %end; + / ' return(" ");' + / ' endfunc;' + / 'quit;'; + + put '%sysfunc(ifc(0<' + / ' %sysfunc(findw((%sysfunc(getoption(cmplib)))' + / " ,work.%sysfunc(lowcase(&packageName.fcmp)),""'( )'"",RIO))" + / ',,%str(options' " APPEND=(cmplib = work.%sysfunc(lowcase(&packageName.fcmp)));)" + / '))' ; + + put '%macro ' "&packageName.META(meta)/parmbuff;" /* returned values are quoted to mask special chars*/ + / '%if %superq(meta) = %then %return;' + / '%do;%qsysfunc(strip(%qsysfunc(' "&packageName.META" '&syspbuff.)))%end;' + / '%mend;' / /; + + /*==========================================================================================*/ + /* list cmplib for functions and fmtsearch for formats*/ if isFunction OR isProto then do; @@ -3836,8 +3901,10 @@ data _null_; end; /* update SYSloadedPackages global macrovariable */ - put 'options noNotes;' - / '%if (%str(*)=%superq(cherryPick)) %then %do; ' /* Cherry Pick test3 start */ + + put '%if (%str(*)=%superq(cherryPick)) %then %do; ' /* Cherry Pick test3 start */ + / ' %let temp_noNotes_etc=%sysfunc(getoption(NOTES));' + / ' options noNotes;' / ' data _null_ ; ' / ' length SYSloadedPackages stringPCKG $ 32767; ' / ' if SYMEXIST("SYSloadedPackages") = 1 and SYMGLOBL("SYSloadedPackages") = 1 then ' @@ -3854,7 +3921,7 @@ data _null_; / " SYSloadedPackages = catx('#', SYSloadedPackages, '&packageName.(&packageVersion.)'); " / ' SYSloadedPackages = compbl(translate(SYSloadedPackages, " ", "#")); ' / ' call symputX("SYSloadedPackages", SYSloadedPackages, "G"); ' - / ' put / "INFO:[SYSLOADEDPACKAGES] " SYSloadedPackages ; ' + / ' put / "INFO: [SYSLOADEDPACKAGES] " SYSloadedPackages ; ' / ' end ; ' / " else " / ' do; ' @@ -3863,21 +3930,22 @@ data _null_; / " SYSloadedPackages = catx('#', SYSloadedPackages, '&packageName.(&packageVersion.)'); " / ' SYSloadedPackages = compbl(translate(SYSloadedPackages, " ", "#")); ' / ' call symputX("SYSloadedPackages", SYSloadedPackages, "G"); ' - / ' put / "INFO:[SYSLOADEDPACKAGES] " SYSloadedPackages ; ' + / ' put / "INFO: [SYSLOADEDPACKAGES] " SYSloadedPackages ; ' / ' end ; ' / ' end; ' / ' else ' / ' do; ' / " call symputX('SYSloadedPackages', '&packageName.(&packageVersion.)', 'G'); " - / " put / 'INFO:[SYSLOADEDPACKAGES] &packageName.(&packageVersion.)'; " + / " put / 'INFO: [SYSLOADEDPACKAGES] &packageName.(&packageVersion.)'; " / ' end; ' / ' stop; ' / ' run; ' + / ' options &temp_noNotes_etc.;' / '%end; ' / ; /* Cherry Pick test3 end */ put 'options NOTES;' / '%put NOTE- ;' - / '%put NOTE: '"Loading package &packageName., version &packageVersion., license &packageLicense.;" + / '%put NOTE: '"Loading package &packageName., version "'%'"&packageName.META(V), license &packageLicense.;" / '%put NOTE- *** END ***;' /; put 'options &temp_noNotes_etc.;' @@ -3988,7 +4056,8 @@ data _null_; / ' from dictionary.catalogs' / ' where ' / ' (' - / ' objname in ("*"' + / ' objname in ("*"' + / " ,%UPCASE('&packageName.META')" / " ,%UPCASE('&packageName.IML')" / " ,%UPCASE('&packageName.CASLUDF')"; /* list of macros */ @@ -4090,7 +4159,12 @@ data _null_; / 'deletefunc ' fileshort ';'; isFunction + 1; end; - put "run;" /; + put "quit;" /; + + put "proc fcmp outlib = work.&packageName.fcmp.packagemeta;" + / "deletefunc &packageName.META;" + / "quit;" /; + isFunction + 1; /* delete the link to the functions dataset */ if isFunction then @@ -4410,7 +4484,7 @@ data _null_; %end; put 'put " " / @3 "---------------------------------------------------------------------" / " ";' - / 'put @3 "*SAS package generated by SAS Package Framework, version `20260125`*";' + / 'put @3 "*SAS package generated by SAS Package Framework, version `20260126`*";' / "put @3 '*under `&sysscp.`(`&sysscpl.`) operating system,*';" / "put @3 '*using SAS release: `&sysvlong4.`.*';" / 'put " " / @3 "---------------------------------------------------------------------";'; @@ -4849,7 +4923,7 @@ options &qlenmax_fstimer_tmp.; /*+SPFint_gnPckg_tests+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the test part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; @@ -4922,6 +4996,18 @@ run; put @n '%loadpackage'"(&packageName.,"; put @n " path=&buildLocation., lazyData=*)" /; + /* meta */ + put @n '%put >>>%'"&packageName."'META( )<<<;'/ + @n '%put >>>%'"&packageName."'META(V)<<<;'/ + @n '%put >>>%'"&packageName."'META(D)<<<;'/ + @n '%put >>>%'"&packageName."'META(A)<<<;'/ + @n '%put >>>%'"&packageName."'META(M)<<<;'/ + @n '%put >>>%'"&packageName."'META(L)<<<;'/ + @n '%put >>>%'"&packageName."'META(E)<<<;'/ + @n '%put >>>%'"&packageName."'META(T)<<<;'/ + @n '%put >>>%'"&packageName."'META(P)<<<;'/ + @n '%put >>>%'"&packageName."'META(S)<<<;'/; + /* help */ put @n '%helpPackage'"(&packageName.,"; put @n " path=&buildLocation.)" /; @@ -5141,6 +5227,19 @@ data _null_; put '%loadpackage'"(&packageName.," / " path=&buildLocation., lazyData=*)" /; + /* meta */ + put '%put >>null >%'"&packageName."'META( )<<<;'/ + '%put >>unknown >%'"&packageName."'META(U)<<<;'/ /* test for unknown values */ + '%put >>version >%'"&packageName."'META(V)<<<;'/ + '%put >>datetime >%'"&packageName."'META(D)<<<;'/ + '%put >>authors >%'"&packageName."'META(A)<<<;'/ + '%put >>maintainers >%'"&packageName."'META(M)<<<;'/ + '%put >>license >%'"&packageName."'META(L)<<<;'/ + '%put >>encoding >%'"&packageName."'META(E)<<<;'/ + '%put >>title >%'"&packageName."'META(T)<<<;'/ + '%put >>req packages>%'"&packageName."'META(P)<<<;'/ + '%put >>req SAS >%'"&packageName."'META(S)<<<;'/; + /* help */ put '%helpPackage'"(&packageName.," / " path=&buildLocation.)" /; @@ -5498,7 +5597,7 @@ options "elenmax_tmp.; /*+SPFint_gnPckg_markdown+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the markdown documentation part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; @@ -5610,7 +5709,7 @@ data &filesWithCodes.markdown; %end; put " " / "---------------------------------------------------------------------" / " " - / "*SAS package generated by SAS Package Framework, version `20260125`,*" + / "*SAS package generated by SAS Package Framework, version `20260126`,*" / "*under `&sysscp.`(`&sysscpl.`) operating system,*" / "*using SAS release: `&sysvlong4.`.*" / " " / "---------------------------------------------------------------------" / " "; @@ -5751,7 +5850,7 @@ options &MarkDownOptionsTmp.; /*+SPFint_gnPckg_arch+*/ %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 20260125.'; +des='SAS Packages Framework internal macro. Executable only inside the %generatePackage() macro. The macro encapsulates the archive version generation part of the process. Version 20260126.'; /* macro picks up all macrovariables from external scope, so from the %generatePackage() macro */ %if %sysmexecname(%sysmexecdepth-1) in (GENERATEPACKAGE) %then %do; @@ -5918,7 +6017,7 @@ TODO: (in Polish) */ )/secure /*** HELP END ***/ -des = 'Macro to load multiple SAS packages at one run, version 20260125. Run %loadPackages() for help info.' +des = 'Macro to load multiple SAS packages at one run, version 20260126. Run %loadPackages() for help info.' parmbuff ; %if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then @@ -5934,7 +6033,7 @@ parmbuff %put ### This is short help information for the `loadPackageS` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro wrapper for the loadPackage macro, version `20260125` #; + %put # Macro wrapper for the loadPackage macro, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -6032,7 +6131,7 @@ parmbuff hashing_file() function, SAS 9.4M6 */ )/secure /*** HELP END ***/ -des = 'Macro to verify SAS package with the hash digest, version 20260125. Run %verifyPackage() for help info.' +des = 'Macro to verify SAS package with the hash digest, version 20260126. Run %verifyPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -6047,7 +6146,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20260125. Run % %put ### This is short help information for the `verifyPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to verify SAS package with it hash digest, version `20260125` #; + %put # Macro to verify SAS package with it hash digest, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -6230,7 +6329,7 @@ des = 'Macro to verify SAS package with the hash digest, version 20260125. Run % */ )/secure /*** HELP END ***/ -des = 'Macro to preview content of a SAS package, version 20260125. Run %previewPackage() for help info.' +des = 'Macro to preview content of a SAS package, version 20260126. Run %previewPackage() for help info.' ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then %do; @@ -6245,7 +6344,7 @@ des = 'Macro to preview content of a SAS package, version 20260125. Run %preview %put ### This is short help information for the `previewPackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to get preview of a SAS packages, version `20260125` #; + %put # Macro to get preview of a SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -6377,7 +6476,7 @@ des = 'Macro to preview content of a SAS package, version 20260125. Run %preview when empty the "packages" value is used */ )/secure /*** HELP END ***/ -des = 'Macro to list directories pointed by "packages" fileref, version 20260125. Run %extendPackagesFileref(HELP) for help info.' +des = 'Macro to list directories pointed by "packages" fileref, version 20260126. Run %extendPackagesFileref(HELP) for help info.' ; %if %QUPCASE(&packages.) = HELP %then @@ -6393,7 +6492,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20260125 %put ### This is short help information for the `extendPackagesFileref` macro #; %put #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to list directories pointed by 'packages' fileref, version `20260125` #; + %put # Macro to list directories pointed by 'packages' fileref, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -6495,7 +6594,7 @@ filename packages list; is provided in required version */ )/secure /*** HELP END ***/ -des = 'Macro to load additional content for a SAS package, version 20260125. Run %loadPackageAddCnt() for help info.' +des = 'Macro to load additional content for a SAS package, version 20260126. Run %loadPackageAddCnt() for help info.' minoperator ; %if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then @@ -6511,7 +6610,7 @@ minoperator %put ### This is short help information for the `loadPackageAddCnt` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *load* additional content for a SAS package, version `20260125` #; + %put # Macro to *load* additional content for a SAS package, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -6880,7 +6979,7 @@ minoperator ,nobs=0 /* technical parameter */ ) /*** HELP END ***/ -/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260125. Run %splitCodeForPackage() for help info.' +/ des = 'Utility macro to split "one big" code into multiple files for a SAS package, version 20260126. Run %splitCodeForPackage() for help info.' ; %if (%superq(codeFile) = ) OR (%qupcase(&codeFile.) = HELP) %then %do; @@ -6896,7 +6995,7 @@ minoperator %put #-------------------------------------------------------------------------------#; %put # #; %put # Utility macro to *split* single file with SAS package code into multiple #; - %put # files with separate snippets, version `20260125` #; + %put # files with separate snippets, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -7272,7 +7371,7 @@ options nomprint nosymbolgen nomlogic notes source ls=MAX ps=MAX msglevel=N ; */ if firstLine[j] then do; - put '/* File generated with help of SAS Packages Framework, version 20260125. */'; + put '/* File generated with help of SAS Packages Framework, version 20260126. */'; firstLine[j]=0; end; put _infile_; @@ -7305,7 +7404,7 @@ options &options_tmp2.; ,psMAX=MAX /* pageSise in case executed inside DoSubL() */ ,ods= /* a data set for results, e.g., work.relocatePackageReport */ ) -/ des = 'Utility macro that locally Copies or Moves Packages, version 20260125. Run %relocatePackage() for help info.' +/ des = 'Utility macro that locally Copies or Moves Packages, version 20260126. Run %relocatePackage() for help info.' secure minoperator ; @@ -7323,7 +7422,7 @@ options &options_tmp2.; %put ### This is short help information for the `relocatePackage` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *locally copy or move* (relocate) SAS packages, version `20260125` #; + %put # Macro to *locally copy or move* (relocate) SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -7981,7 +8080,7 @@ filename PACKAGES ("R:\testPackages2" "R:\testPackages1"); vERRb /* indicates if macro should be verbose and report errors */ ) / minoperator PARMBUFF -des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260125.' +des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFilerefOK(HELP) for help, version 20260126.' ; /*** HELP END ***/ %if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then @@ -7997,7 +8096,7 @@ des = 'Macro to check if the PACKAGES fileref is "correct", type %isPackagesFile %put ### This is short help information for the `isPackagesFilerefOK` macro #; %put #-----------------------------------------------------------------------------------------#;; %put # #; - %put # Macro to check if the `packages` fileref is "correct", version `20260125` #; + %put # Macro to check if the `packages` fileref is "correct", version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -8131,7 +8230,7 @@ SPFmacroName /* space separated list of names */ / minoperator secure -des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260125. Run %SasPackagesFrameworkNotes(HELP) for help info.' +des = 'Macro to provide help notes about SAS Packages Framework macros, version 20260126. Run %SasPackagesFrameworkNotes(HELP) for help info.' ; %local list N i element; %let list= @@ -8177,7 +8276,7 @@ SasPackagesFrameworkNotes %put ### This is short help information for the `SasPackagesFrameworkNotes` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro prints help notes for SAS Packages Framework macros, version `20260125` #; + %put # Macro prints help notes for SAS Packages Framework macros, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -8300,7 +8399,7 @@ options mlogic symbolgen; ,packagesRef=packages ,ods= /* data set for report file */ )/ -des='Macro to create a bundle of SAS packages, version 20260125. Run %bundlePackages(HELP) for help info.' +des='Macro to create a bundle of SAS packages, version 20260126. Run %bundlePackages(HELP) for help info.' secure minoperator ; @@ -8317,7 +8416,7 @@ secure minoperator %put ### This is short help information for the `bundlePackages` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *create bundles* of SAS packages, version `20260125` #; + %put # Macro to *create bundles* of SAS packages, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; @@ -8802,7 +8901,7 @@ filename p2 "R:/dontexist"; ,ods= /* data set for report file */ ,verify=0 )/ -des='Macro to extract a bundle of SAS packages, version 20260125. Run %unbundlePackages(HELP) for help info.' +des='Macro to extract a bundle of SAS packages, version 20260126. Run %unbundlePackages(HELP) for help info.' secure minoperator ; @@ -8820,7 +8919,7 @@ minoperator %put ### This is short help information for the `unbundlePackages` macro #; %put #-------------------------------------------------------------------------------#; %put # #; - %put # Macro to *extract* SAS packages from a bundle, version `20260125` #; + %put # Macro to *extract* SAS packages from a bundle, version `20260126` #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, data steps generating #; diff --git a/packages/README.md b/packages/README.md index 49dd072..6b7642a 100644 --- a/packages/README.md +++ b/packages/README.md @@ -10,7 +10,7 @@ Packages: --- -- **SQLinDS**\[2.3.1\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g. +- **SQLinDS**\[2.3.2\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g. ```sas data class; set %SQL( @@ -22,13 +22,13 @@ data class; WH = weight + height; run; ``` -SHA256 digest for SQLinDS: F*606A24A2A6B06DAAD2D443FA9A9819D9564235A5CD8599FD15586F1EFFCB41BC +SHA256 digest for SQLinDS: F*CEAA4C90515F6E8AACBFFD55ABA6544E399EDBE0A7081107B62DCEE6F5430A1D [Documentation for SQLinDS](https://github.com/SASPAC/blob/main/sqlinds.md "Documentation for SQLinDS") --- -- **DFA** (Dynamic Function Arrays)\[0.5.7\], contains set of macros and FCMP functions which implement: a dynamically allocated array, a stack, a fifo queue, an ordered stack, and a priority queue, run `%helpPackage(DFA,createDFArray)` to find examples. +- **DFA** (Dynamic Function Arrays)\[0.5.8\], contains set of macros and FCMP functions which implement: a dynamically allocated array, a stack, a fifo queue, an ordered stack, and a priority queue, run `%helpPackage(DFA,createDFArray)` to find examples. ```sas %createDFArray(ArrDynamic, resizefactor=17); @@ -55,13 +55,13 @@ data _null_; end; run; ``` -SHA256 digest for DFA: F*012375D87F66EB3A7BF5DDD0CC5AEE28851733EE33CC63231DF9045BEB958168 +SHA256 digest for DFA: F*643FBE2B7AE1425FC0240139813B93AE2C6BCFFDF6A0CFAEBEC11F83D3548E57 [Documentation for DFA](https://github.com/SASPAC/blob/main/dfa.md "Documentation for DFA") --- -- **macroArray**\[1.3.0\], implementation of an array concept in a macro language, e.g. +- **macroArray**\[1.3.1\], implementation of an array concept in a macro language, e.g. ```sas %array(ABC[17] (111:127), macarray=Y); @@ -80,13 +80,13 @@ SHA256 digest for DFA: F*012375D87F66EB3A7BF5DDD0CC5AEE28851733EE33CC63231DF9045 which = 1:H:2 ); ``` -SHA256 digest for macroArray: F*C6C2B5507B6590365222FC764076E294CCE3AAE99971D9CAA942F8BAEBEFAE24 +SHA256 digest for macroArray: F*9DA64CA9A745E1DB7176F7AF4459BB014F61F71626473ABF6471A32689E14FF1 [Documentation for macroArray](https://github.com/SASPAC/blob/main/macroarray.md "Documentation for macroArray") --- -- **BasePlus**\[3.1.1\] adds a bunch of functionalities I am missing in BASE SAS, such as: +- **BasePlus**\[3.1.2\] adds a bunch of functionalities I am missing in BASE SAS, such as: ```sas call arrMissToRight(myArray); call arrFillMiss(17, myArray); @@ -120,13 +120,13 @@ format x bool.; %workLib(ABC) ``` -SHA256 digest for BasePlus: F*6394CE27FBCF48D475F682CBCF8CA8B4FDD6D40D2672EF571F4A561BDDF274A6 +SHA256 digest for BasePlus: F*91A5AD4709A418704315EF37DDCF954522D4FB42808D406B3ED4DA560F6864C6 [Documentation for BasePlus](https://github.com/SASPAC/blob/main/baseplus.md "Documentation for BasePlus") --- -- **GSM** (Generate Secure Macros)\[0.22.1\], package allows +- **GSM** (Generate Secure Macros)\[0.22.2\], package allows to create secured macros stored in SAS Proc FCMP functions. The dataset with functions can be shared between different operating systems and allows to generate macros on site without showing their code. @@ -135,7 +135,7 @@ SHA256 digest for BasePlus: F*6394CE27FBCF48D475F682CBCF8CA8B4FDD6D40D2672EF571F [The WUSS 2023 Conference article describing the idea](https://www.wuss.org/proceedings/2023/WUSS-2023-Paper-189.pdf "Article about the idea GSM") -SHA256 digest for GSM: F*80197391195C3EC41BD436DF0C8802D3920E4D22B64009A7DE872FBDF8D4B86E +SHA256 digest for GSM: F*7A4FEC410DEB921613A33F154FBBE332D7EC4C4DAC1351A4E611D986489EE848 [Documentation for GSM](https://github.com/SASPAC/blob/main/gsm.md "Documentation for GSM") diff --git a/packages/SHA256_for_packages.txt b/packages/SHA256_for_packages.txt index a656188..d2f6b62 100644 --- a/packages/SHA256_for_packages.txt +++ b/packages/SHA256_for_packages.txt @@ -1,3 +1,10 @@ +/* 20260126 */ +BasePlus: F*91A5AD4709A418704315EF37DDCF954522D4FB42808D406B3ED4DA560F6864C6 +DFA: F*643FBE2B7AE1425FC0240139813B93AE2C6BCFFDF6A0CFAEBEC11F83D3548E57 +GSM: F*7A4FEC410DEB921613A33F154FBBE332D7EC4C4DAC1351A4E611D986489EE848 +macroArray: F*9DA64CA9A745E1DB7176F7AF4459BB014F61F71626473ABF6471A32689E14FF1 +SQLinDS: F*CEAA4C90515F6E8AACBFFD55ABA6544E399EDBE0A7081107B62DCEE6F5430A1D + /* 20260113 */ macroArray: F*C6C2B5507B6590365222FC764076E294CCE3AAE99971D9CAA942F8BAEBEFAE24 diff --git a/packages/baseplus.md b/packages/baseplus.md index ccc03b9..a8f1eea 100644 --- a/packages/baseplus.md +++ b/packages/baseplus.md @@ -9,22 +9,22 @@ ### Version information: - Package: BasePlus -- Version: 3.1.1 -- Generated: 2025-11-05T15:10:31 +- Version: 3.1.2 +- Generated: 2026-01-26T15:57:25 - Author(s): Bartosz Jablonski (yabwon@gmail.com), contributors are Quentin McMullen (qmcmullen@gmail.com) and Ryo Nakaya (nakaya.ryou@gmail.com) - Maintainer(s): Bartosz Jablonski (yabwon@gmail.com) - License: MIT -- File SHA256: `F*6394CE27FBCF48D475F682CBCF8CA8B4FDD6D40D2672EF571F4A561BDDF274A6` for this version -- Content SHA256: `C*3CA28DF8F3E6D6670D7FD44788D347452F24F4BCF18115873E7EBC742FE30CA4` for this version +- File SHA256: `F*91A5AD4709A418704315EF37DDCF954522D4FB42808D406B3ED4DA560F6864C6` for this version +- Content SHA256: `C*BB61DE3ECA8293AD1CFCE9A6BF5E175B7CFDB75DF063D6070783B75F7B97CE61` for this version --- -# The `BasePlus` package, version: `3.1.1`; +# The `BasePlus` package, version: `3.1.2`; --- -# The BasePlus package [ver. 3.1.1] ############################################### +# The BasePlus package [ver. 3.1.2] ############################################### The **BasePlus** package implements useful functions and functionalities I miss in the BASE SAS. @@ -407,11 +407,13 @@ Package contains additional content, run: `%loadPackageAddCnt(BasePlus)` to lo or look for the `baseplus_AdditionalContent` directory in the `packages` fileref localization (only if additional content was deployed during the installation process). --------------------------------------------------------------------- +--------------------------------------------------------------------- -*SAS package generated by SAS Package Framework, version `20251017`* +*SAS package generated by SAS Package Framework, version `20260125`,* +*under `WIN`(`X64_10PRO`) operating system,* +*using SAS release: `9.04.01M9P06042025`.* --------------------------------------------------------------------- +--------------------------------------------------------------------- # The `BasePlus` package content The `BasePlus` package consists of the following content: @@ -7738,7 +7740,7 @@ The basic syntax is the following, the `<...>` means optional parameters: # License ###### -Copyright (c) 2020 - 2025 Bartosz Jablonski +Copyright (c) 2020 - 2026 Bartosz Jablonski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/baseplus.zip b/packages/baseplus.zip index 9e20fc0..25065e5 100644 Binary files a/packages/baseplus.zip and b/packages/baseplus.zip differ diff --git a/packages/dfa.md b/packages/dfa.md index 8a7d4f6..b7b38be 100644 --- a/packages/dfa.md +++ b/packages/dfa.md @@ -1,24 +1,30 @@ -- [The DFA package](#dfa-package) -- [Content description](#content-description) - * [`%createDFArray()` macro](#createdfarray-macro) - * [`%createDHArray()` macro](#createdharray-macro) - * [`%createDHFifo()` macro](#createdhfifo-macro) - * [`%createDHOrdStack()` macro](#createdhordstack-macro) - * [`%createDHPrtQueue()` macro](#createdhprtqueue-macro) - * [`%createDHStack()` macro](#createdhstack-macro) - * [`bit64orPROTOdfa()` proto function](#bit64orprotodfa-proto-function) - * [`bit64andPROTOdfa()` proto function](#bit64andprotodfa-proto-function) - * [`bit64orDFA()` subroutine](#bit64ordfa-function) - * [`bit64andDFA()` subroutine](#bit64anddfa-function) - * [`%createDFBitmap()` macro](#createdfbitmap-macro) - * [`generateArrays` exec](#createdhprtqueue-exec) - * [`generateArrays` clean](#createdhprtqueue-clean) +# Documentation for the `DFA` package. + +---------------------------------------------------------------- + + *Dynamic function arrays and other useful data structures* + +---------------------------------------------------------------- + +### Version information: + +- Package: DFA +- Version: 0.5.8 +- Generated: 2026-01-26T15:19:02 +- Author(s): Bartosz Jablonski (yabwon@gmail.com) +- Maintainer(s): Bartosz Jablonski (yabwon@gmail.com) +- License: MIT +- File SHA256: `F*643FBE2B7AE1425FC0240139813B93AE2C6BCFFDF6A0CFAEBEC11F83D3548E57` for this version +- Content SHA256: `C*E2E883D8F8A7F7FCB97C2B7240FD5E70A8A6F2A6B3F0F75119F47886338C6B0C` for this version - * [License](#license) - --- + +# The `DFA` package, version: `0.5.8`; + +--- + -# The DFA package [ver. 0.5.7] ############################################### +# The DFA package [ver. 0.5.8] ############################################### The **DFA** (a.k.a. *Dynamic Function Array*) package implements: - dynamic numeric and character arrays, @@ -36,30 +42,50 @@ Few exemplary functions are also generated. See particular macro help for further details. --- - -Package contains: -1. macro createdfarray -2. macro createdharray -3. macro createdhfifo -4. macro createdhordstack -5. macro createdhprtqueue -6. macro createdhstack -7. proto bit64andprotodfa -8. proto bit64orprotodfa -9. functions bit64anddfa -10. functions bit64ordfa -11. macro createdfbitmap -12. exec generatearrays -13. clean generatearrays - -*SAS package generated by generatePackage, version 20231111* - -The SHA256 hash digest for package DFA: -`F*012375D87F66EB3A7BF5DDD0CC5AEE28851733EE33CC63231DF9045BEB958168` - + --- -# Content description ############################################################################################ - + + +--- + +Required SAS Components: + - Base SAS Software + +--- + + +--------------------------------------------------------------------- + +*SAS package generated by SAS Package Framework, version `20260125`,* +*under `WIN`(`X64_10PRO`) operating system,* +*using SAS release: `9.04.01M9P06042025`.* + +--------------------------------------------------------------------- + +# The `DFA` package content +The `DFA` package consists of the following content: + +1. [`%createdfarray()` macro ](#createdfarray-macro-1 ) +2. [`%createdharray()` macro ](#createdharray-macro-2 ) +3. [`%createdhfifo()` macro ](#createdhfifo-macro-3 ) +4. [`%createdhordstack()` macro ](#createdhordstack-macro-4 ) +5. [`%createdhprtqueue()` macro ](#createdhprtqueue-macro-5 ) +6. [`%createdhstack()` macro ](#createdhstack-macro-6 ) +7. [`bit64andprotodfa()` proto ](#bit64andprotodfa-proto-7 ) +8. [`bit64orprotodfa()` proto ](#bit64orprotodfa-proto-8 ) +9. [`bit64anddfa()` function ](#bit64anddfa-functions-9 ) +10. [`bit64ordfa()` function ](#bit64ordfa-functions-10 ) +11. [`%createdfbitmap()` macro ](#createdfbitmap-macro-11 ) +12. [`generatearrays` exec ](#generatearrays-exec-12 ) +13. [`generatearrays` clean ](#generatearrays-clean-13 ) + + +14. [License note](#license) + +--- + +## `%createdfarray()` macro ###### + ## >>> `%createDFArray()` macro: <<< ####################### The `%createDFArray()` macro allows to generate @@ -122,7 +148,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -172,6 +198,7 @@ and accepts the following list of arguments and values: The `position` and the `value` arguments are **outargs**, i.e. can be changed by the function. + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Searchable, and Immutable array: @@ -309,6 +336,12 @@ The `position` and the `value` arguments are **outargs**, i.e. can be changed by ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- + + +--- + +## `%createdharray()` macro ###### + ## >>> `%createDHArray()` macro: <<< ####################### The `%createDHArray()` macro allows to generate @@ -360,7 +393,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -397,6 +430,7 @@ and accepts the following list of arguments and values: The `position` and the `value` arguments are **outargs**, i.e. can be changed by the function. + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Hash-based, and Character array: @@ -464,6 +498,12 @@ The `position` and the `value` arguments are **outargs**, i.e. can be changed by ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- + + +--- + +## `%createdhfifo()` macro ###### + ## >>> `%createDHFifo()` macro: <<< ####################### The `%createDHFifo()` macro allows to generate @@ -519,7 +559,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -550,7 +590,7 @@ and accepts the following list of arguments and values: The `value` argument is **outarg**, i.e. can be changed by the function. - + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Hash-based, and Character fifo: @@ -639,6 +679,12 @@ The `value` argument is **outarg**, i.e. can be changed by the function. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- + + +--- + +## `%createdhordstack()` macro ###### + ## >>> `%createDHOrdStack()` macro: <<< ####################### The `%createDHOrdStack()` macro allows to generate @@ -699,7 +745,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -732,7 +778,7 @@ and accepts the following list of arguments and values: The `value` argument is **outarg**, i.e. can be changed by the function. - + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Hash-based, and Character Descending Ordered stack: @@ -804,6 +850,12 @@ The `value` argument is **outarg**, i.e. can be changed by the function. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- + + +--- + +## `%createdhprtqueue()` macro ###### + ## >>> `%createDHPrtQueue()` macro: <<< ####################### @@ -860,7 +912,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -901,7 +953,7 @@ and accepts the following list of arguments and values: The `position` and the `value` arguments are **outargs**, i.e. can be changed by the function. - + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Hash-based, and Character Priority queue: @@ -965,6 +1017,12 @@ The `position` and the `value` arguments are **outargs**, i.e. can be changed by ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- + + +--- + +## `%createdhstack()` macro ###### + ## >>> `%createDHStack()` macro: <<< ####################### The `%createDHStack()` macro allows to generate @@ -1020,7 +1078,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -1050,7 +1108,7 @@ and accepts the following list of arguments and values: The `value` argument is **outarg**, i.e. can be changed by the function. - + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Dynamic, Hash-based, and Character stack: @@ -1128,31 +1186,11 @@ The `value` argument is **outarg**, i.e. can be changed by the function. --- -## >>> `bit64orPROTOdfa()` proto function: <<< ####################### - -The **bit64orPROTOdfa()** is external *C* function, -this is the implementation of the *bitwise OR* operation -on doubles. A double is returned. - -**Caution!** For SAS numeric values *only* operations on first 53 bits are valid! - -The function is used **internally** by functions in the *DFA* package. - -### SYNTAX: ################################################################### - -The basic syntax is the following: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas -bit64orPROTOdfa(i, j) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -**Arguments description**: - -1. `i` - A double numeric argument. - -2. `j` - A double numeric argument. - + --- - + +## `bit64andprotodfa()` proto ###### + ## >>> `bit64andPROTOdfa()` proto function: <<< ####################### The **bit64andPROTOdfa()** is external *C* function, @@ -1178,62 +1216,41 @@ bit64andPROTOdfa(i, j) --- -## >>> `bit64orDFA()` subroutine: <<< ####################### + +--- + +## `bit64orprotodfa()` proto ###### + +## >>> `bit64orPROTOdfa()` proto function: <<< ####################### -The **bit64orDFA()** function is an alternative to -the 32 bit bitwise `BOR()` function working on SAS numerics. -Allows to work on *up to* 53 bits of SAS numeric value. +The **bit64orPROTOdfa()** is external *C* function, +this is the implementation of the *bitwise OR* operation +on doubles. A double is returned. -The `bit64orDFA()` is an *internal* function of the `DFA` package. +**Caution!** For SAS numeric values *only* operations on first 53 bits are valid! + +The function is used **internally** by functions in the *DFA* package. ### SYNTAX: ################################################################### -The basic syntax is the following, the `<...>` means optional parameters: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas -bit64orDFA(a, b) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The basic syntax is the following: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas +bit64orPROTOdfa(i, j) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Arguments description**: -1. `a` - Argument is a SAS numeric values. +1. `i` - A double numeric argument. -2. `B` - Argument is a SAS numeric values. - -### EXAMPLES AND USECASES: #################################################### - -**EXAMPLE 1.** Basic test of `bit64orDFA()` and `bit64andDFA()` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas - options ls = max ps = max; - %let M = 53 ; %* 53 is maximum valid value; - data _null_; - array bitmask [ 0: &M] _temporary_ ; - do P = 1 to &M ; - bitmask[P] = 2**(P-1) ; - put bitmask[P] = binary54. @; - put bitmask[P] = best32.; - end ; - bitmask[0] = bitmask[&M.] ; - put bitmask[0] = best32. /; - - a=0; - put a = binary54.; - do P = 1 to &M ; - a = BIT64ORDFA (a, bitmask[P]) ; - put a = binary54.; - end; - put; - - b = 0; - put b = binary54./; - do P = 1 to &M ; - b + (BIT64ANDDFA (a, bitmask[P]) ne .) ; - put b = best32.; - end; - run; -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2. `j` - A double numeric argument. --- + +--- + +## `bit64anddfa()` function ###### + ## >>> `bit64andDFA()` subroutine: <<< ####################### The **bit64andDFA()** function is an alternative to @@ -1255,6 +1272,7 @@ bit64andDFA(a, b) 2. `B` - Argument is a SAS numeric values. + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Basic test of `bit64orDFA()` and `bit64andDFA()` @@ -1290,6 +1308,73 @@ bit64andDFA(a, b) --- + +--- + +## `bit64ordfa()` function ###### + +## >>> `bit64orDFA()` subroutine: <<< ####################### + +The **bit64orDFA()** function is an alternative to +the 32 bit bitwise `BOR()` function working on SAS numerics. +Allows to work on *up to* 53 bits of SAS numeric value. + +The `bit64orDFA()` is an *internal* function of the `DFA` package. + +### SYNTAX: ################################################################### + +The basic syntax is the following, the `<...>` means optional parameters: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas +bit64orDFA(a, b) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +**Arguments description**: + +1. `a` - Argument is a SAS numeric values. + +2. `B` - Argument is a SAS numeric values. + + +### EXAMPLES AND USECASES: #################################################### + +**EXAMPLE 1.** Basic test of `bit64orDFA()` and `bit64andDFA()` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas + options ls = max ps = max; + %let M = 53 ; %* 53 is maximum valid value; + data _null_; + array bitmask [ 0: &M] _temporary_ ; + do P = 1 to &M ; + bitmask[P] = 2**(P-1) ; + put bitmask[P] = binary54. @; + put bitmask[P] = best32.; + end ; + bitmask[0] = bitmask[&M.] ; + put bitmask[0] = best32. /; + + a=0; + put a = binary54.; + do P = 1 to &M ; + a = BIT64ORDFA (a, bitmask[P]) ; + put a = binary54.; + end; + put; + + b = 0; + put b = binary54./; + do P = 1 to &M ; + b + (BIT64ANDDFA (a, bitmask[P]) ne .) ; + put b = best32.; + end; + run; +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- + + +--- + +## `%createdfbitmap()` macro ###### + ## >>> `%createDFBitmap()` macro: <<< ####################### The `%createDFBitmap()` macro allows to generate @@ -1346,7 +1431,7 @@ The basic syntax is the following, the `<...>` means optional parameters: * `header=` - *Optional*, the default value is `1`. Indicates if the `proc fcmp outlib = &outlib.;` header is added to the executed code. If not 1 then no header is added. - + **Created function arguments description**: A function generated by the macro is: @@ -1382,6 +1467,7 @@ and accepts the following list of arguments and values: The `position` and the `value` arguments are **outargs**, i.e. can be changed by the function. + ### EXAMPLES AND USECASES: #################################################### **EXAMPLE 1.** Bitmap of type 32: @@ -1534,6 +1620,11 @@ NOTE: DATA statement used (Total process time): --- + +--- + +## `generatearrays` exec ###### + ## >>> `generateArrays` exec: <<< ####################### The generateArrays exec file provides a **list of automatically generated examples** of functions @@ -1563,6 +1654,12 @@ The list of provided examples is the following: The `outlib=` option is set to `work.DFAfcmp.package`. The `cmplib=` option is updated automatically. --- + + +--- + +## `generatearrays` clean ###### + ## >>> `generateArrays` clean: <<< ####################### The generateArrays clean file clears the list of automatically generated examples of functions @@ -1572,9 +1669,15 @@ The `cmplib=` option is updated automatically. --- -## License #################################################################### - -Copyright (c) 2019 Bartosz Jablonski + +--- + + +--- + +# License ###### + +Copyright (c) 2019 - 2026 Bartosz Jablonski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -1593,5 +1696,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - + --- + diff --git a/packages/dfa.zip b/packages/dfa.zip index 657adca..25452b0 100644 Binary files a/packages/dfa.zip and b/packages/dfa.zip differ diff --git a/packages/gsm.md b/packages/gsm.md index 81e2577..5989710 100644 --- a/packages/gsm.md +++ b/packages/gsm.md @@ -1,20 +1,40 @@ -- [The GSM package](#gsm-package) -- [Content description](#content-description) - * [`%GSM()` macro](#gsm-macro) - * [`%GSMpck_makeFCMPcode()` macro](#gsmpck-makefcmpcode-macro) - - * [License](#license) +# Documentation for the `GSM` package. + +---------------------------------------------------------------- + + *Generate Secure Macros - to keep your code secret* + +---------------------------------------------------------------- + +### Version information: + +- Package: GSM +- Version: 0.22.2 +- Generated: 2026-01-26T16:44:38 +- Author(s): Bartosz Jablonski (yabwon@gmail.com) +- Maintainer(s): Bartosz Jablonski (yabwon@gmail.com) +- License: MIT +- File SHA256: `F*7A4FEC410DEB921613A33F154FBBE332D7EC4C4DAC1351A4E611D986489EE848` for this version +- Content SHA256: `C*99444DE5A473D3F92374ACE917E29E77C1F94BF77E06436695B06B85705606C7` for this version --- + +# The `GSM` package, version: `0.22.2`; + +--- + - -# The GSM package [ver. 0.22.1] ############################################### +# The GSM package [ver. 0.22.2] ############################################### The **GSM** (a.k.a. *Generate Secure Macros*) package allows to create secured macros stored in SAS Proc FCMP functions. The dataset with functions can be shared and allows to generate macros without showing their code. +[Recording of presentation with "how it works" description (in Polish)](https://www.youtube.com/watch?v=LtaWPe2sgRY&t=1s "YouTube"). + +[The WUSS 2023 Conference article describing the idea](https://www.wuss.org/wuss-2023-conference-proceedings/ "Article about the idea GSM") + The GSM package is basically an automated version of the following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas proc fcmp outlib = work.gsm.secure ENCRYPT; @@ -42,10 +62,6 @@ run; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ See examples for more details. -[Recording of presentation with "how it works" description (in Polish)](https://www.youtube.com/watch?v=LtaWPe2sgRY&t=1s "YouTube"). - -[The WUSS 2023 Conference article describing the idea](https://www.lexjansen.com/wuss/2023/WUSS-2023-Paper-189.pdf "Article about the idea GSM") - *How to use it:* - Copy all files with your secured macros code into a directory. @@ -56,53 +72,74 @@ See examples for more details. %GSM(, cmplib=) ``` - Share generated `ZIP` file (unzip and run the code). - + + **Limitations:** - Single macro file cannot be longer than 32760 bytes. - Multiline text variable. Consider the following code text file: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -%macro~test()/SECURE;~#@ -data~test;~#@ -a~=~"abc~#@ -~#@ -def";~#@ -put~a~hex20.;~#@ -run;~#@ -%mend~test;~#@ -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -where `~` symbols the space character, -`#` symbols the carriage return (`0D`), -and `@` symbols the line feed (`0A`). -The code file is scanned and inserted into -the `resolve()` function argument in a "byte by byte" -fashion hence also the "end of line" characters are included. -As the result value of variable `a` will be: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + %macro~test()/SECURE;~#@ + data~test;~#@ + a~=~"abc~#@ + ~#@ + def";~#@ + put~a~hex20.;~#@ + run;~#@ + %mend~test;~#@ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + where `~` symbols the space character, + `#` symbols the carriage return (`0D`), + and `@` symbols the line feed (`0A`). + The code file is scanned and inserted into + the `resolve()` function argument in a "byte by byte" + fashion hence also the "end of line" characters are included. + As the result value of variable `a` will be: -`a = "abc~#@~#@def"`. - -If you want to use the `GSM` package avoid -such "style" of coding in your macros. + `a = "abc~#@~#@def"`. + If you want to use the `GSM` package avoid + such "style" of coding in your macros. --- - -Package contains: - 1. macro gsm - 2. macro gsmpck_makefcmpcode - + +--- + + +--- + Required SAS Components: - `Base SAS Software` - -Package contains additional content, run: %loadPackageAddCnt(GSM) to load it -or look for the gsm_AdditionalContent directory in the Packages fileref + - Base SAS Software + +--- + + +--- + +Package contains additional content, run: `%loadPackageAddCnt(GSM)` to load it +or look for the `gsm_AdditionalContent` directory in the `packages` fileref localization (only if additional content was deployed during the installation process). - -*SAS package generated by generatePackage, version 20231111* - -The SHA256 hash digest for package GSM: -`F*80197391195C3EC41BD436DF0C8802D3920E4D22B64009A7DE872FBDF8D4B86E` - + +--------------------------------------------------------------------- + +*SAS package generated by SAS Package Framework, version `20260126`,* +*under `WIN`(`X64_10PRO`) operating system,* +*using SAS release: `9.04.01M9P06042025`.* + +--------------------------------------------------------------------- + +# The `GSM` package content +The `GSM` package consists of the following content: + +1. [`%gsm()` macro ](#gsm-macro-1 ) +2. [`%gsmpck_makefcmpcode()` macro ](#gsmpckmakefcmpcode-macro-2 ) + + +3. [License note](#license) + +--- + +## `%gsm()` macro ###### ## >>> `%GSM()` macro: <<< ####################### @@ -111,20 +148,22 @@ the **GSM** (a.k.a. *Generate Secure Macros*) package. It converts a list of macros provided by the user into a data set of the Proc FCMP functions. The macros are stored -in functions are encrypted which allow to share them without -showing their code. *Important* thing is that macros provided -by the user *has* to be "secure", i.e. the `secure` option has to -be added to the macro definition. See the example: +as encrypted code which allow to share the macros +without showing their code. + +*Important* thing is that macros provided by the user *has* to +be "secure", i.e. the `secure` option has to be added to the +macro definition and th emacro code has to be written properly. +See the example: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas -%macro secretMacro(x) / SECURE; /* <- the secure option */ - <... some code ...> +%macro secretMacro(x) / SECURE; %* <- the secure option *; + <... secure code ...> %mend secretMacro; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - As a result a zip file, containing dataset with functions and -code to be executed on site, is generated. +code to be executed on site, is generated. Since encrypted code is stored in a SAS dataset it has no limitation in sharing between operating systems (like catalogs have). @@ -199,9 +238,11 @@ The basic syntax is the following, the `<...>` means optional parameters: * `trim=` - *Deprecated*, the default value is `0`. *Kept for backward compatibility.* - + + --- + ### Example: ################################################################### Example 1. Prepare 2 files: `f1.sas` and `f2.sas` and use the `%GSM()` macro. @@ -245,6 +286,11 @@ run; %GSM(&path., cmplib=work.myMacros) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- + +## `%gsmpck_makefcmpcode()` macro ###### + ## >>> `%GSMpck_makeFCMPcode()` macro: <<< ####################### The `%GSMpck_makeFCMPcode()` macro is an internal macro of @@ -310,10 +356,15 @@ The basic syntax is the following, the `<...>` means optional parameters: --- - -## License #################################################################### - -Copyright (c) Bartosz Jablonski, since 2021 + +--- + + +--- + +# License ###### + +Copyright (c) Bartosz Jablonski, since 2021 onward Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -332,5 +383,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - + --- + diff --git a/packages/gsm.zip b/packages/gsm.zip index d6cc418..16eac9f 100644 Binary files a/packages/gsm.zip and b/packages/gsm.zip differ diff --git a/packages/macroarray.md b/packages/macroarray.md index af8be65..9aff59d 100644 --- a/packages/macroarray.md +++ b/packages/macroarray.md @@ -9,17 +9,17 @@ ### Version information: - Package: macroArray -- Version: 1.3.0 -- Generated: 2026-01-13T15:30:15 +- Version: 1.3.1 +- Generated: 2026-01-26T15:33:03 - Author(s): Bartosz Jablonski (yabwon@gmail.com) - Maintainer(s): Bartosz Jablonski (yabwon@gmail.com) - License: MIT -- File SHA256: `F*C6C2B5507B6590365222FC764076E294CCE3AAE99971D9CAA942F8BAEBEFAE24` for this version -- Content SHA256: `C*9119F3A4C7C4D859C7FB03373AB4FE6551CD7BDFA42BA9B4303D36C367BC8855` for this version +- File SHA256: `F*9DA64CA9A745E1DB7176F7AF4459BB014F61F71626473ABF6471A32689E14FF1` for this version +- Content SHA256: `C*15A52658C8CBF9AB36AB1CA847FA628CCC6E9C67F625FFD3A959EB191445F780` for this version --- -# The `macroArray` package, version: `1.3.0`; +# The `macroArray` package, version: `1.3.1`; --- @@ -75,7 +75,7 @@ Required SAS Components: --------------------------------------------------------------------- -*SAS package generated by SAS Package Framework, version `20251231`,* +*SAS package generated by SAS Package Framework, version `20260126`,* *under `WIN`(`X64_10PRO`) operating system,* *using SAS release: `9.04.01M9P06042025`.* diff --git a/packages/macroarray.zip b/packages/macroarray.zip index eea55b4..2bdaf63 100644 Binary files a/packages/macroarray.zip and b/packages/macroarray.zip differ diff --git a/packages/sqlinds.md b/packages/sqlinds.md index 082157d..aae248d 100644 --- a/packages/sqlinds.md +++ b/packages/sqlinds.md @@ -9,22 +9,22 @@ ### Version information: - Package: SQLinDS -- Version: 2.3.1 -- Generated: 2025-11-22T12:47:32 +- Version: 2.3.2 +- Generated: 2026-01-26T15:36:16 - Author(s): Mike Rhoads (RhoadsM1@Westat.com), contributor Bartosz Jablonski - Maintainer(s): Bartosz Jablonski (yabwon@gmail.com) - License: MIT -- File SHA256: `F*606A24A2A6B06DAAD2D443FA9A9819D9564235A5CD8599FD15586F1EFFCB41BC` for this version -- Content SHA256: `C*4CCCF31DA9D94E0EE2DA612724D395056B7BA07CB593C93947835BB8319B33EB` for this version +- File SHA256: `F*CEAA4C90515F6E8AACBFFD55ABA6544E399EDBE0A7081107B62DCEE6F5430A1D` for this version +- Content SHA256: `C*BD9C8A88831541082BEFC07954D5CDB4A6827D1A7902B911221AC6FE712A087E` for this version --- -# The `SQLinDS` package, version: `2.3.1`; +# The `SQLinDS` package, version: `2.3.2`; --- -### The SQLinDS package [ver. 2.3.1] +### The SQLinDS package [ver. 2.3.2] The **SQLinDS** package is an implementation of the *macro-function-sandwich* concept introduced in the @@ -77,7 +77,7 @@ localization (only if additional content was deployed during the installation pr --------------------------------------------------------------------- -*SAS package generated by SAS Package Framework, version `20251122`,* +*SAS package generated by SAS Package Framework, version `20260126`,* *under `WIN`(`X64_10PRO`) operating system,* *using SAS release: `9.04.01M9P06042025`.* diff --git a/packages/sqlinds.zip b/packages/sqlinds.zip index 7613155..3e7fdd6 100644 Binary files a/packages/sqlinds.zip and b/packages/sqlinds.zip differ