From 57fd0482761969166bb0b6c2b7837111dbf578ea Mon Sep 17 00:00:00 2001 From: yabwon Date: Sat, 25 Jul 2020 12:22:14 +0200 Subject: [PATCH] version 20200725 version 20200725, descriptions to macros added --- generatePackage.sas | 10 ++++++---- listpackages.sas | 6 ++++-- loadpackage.sas | 27 +++++++++++++++++---------- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/generatePackage.sas b/generatePackage.sas index ca6c861..5bcf79c 100644 --- a/generatePackage.sas +++ b/generatePackage.sas @@ -36,7 +36,7 @@ */ /**#############################################################################**/ -/* Macros to generate SAS packages, version 20200619 */ +/* Macros to generate SAS packages, version 20020725 */ /* A SAS package is a zip file containing a group of SAS codes (macros, functions, datasteps generating data, etc.) wrapped up together and %INCLUDEed by @@ -54,8 +54,10 @@ default value Y means "execute tests" */ ,packages= /* location of other packages if there are dependencies in loading */ -)/secure; +)/secure /*** HELP END ***/ +desc = 'Macro to generate SAS packages, version 20020725. Run %generatePackage() for help info.' +; %if %superq(filesLocation) = %then %do; %put ; @@ -63,7 +65,7 @@ %put # This is short help information for the generatePackage macro #; %put ###############################################################################; %put # #; - %put # Macro to generate SAS packages, version 20200619 #; + %put # Macro to generate SAS packages, version 20020725 #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, datasteps generating #; @@ -1190,7 +1192,7 @@ data _null_; put ' end ; '; %end; - put 'put "***"; put "* SAS package generated by generatePackage, version 20200619 *"; put "***";'; + put 'put "***"; put "* SAS package generated by generatePackage, version 20020725 *"; put "***";'; put 'run; ' /; diff --git a/listpackages.sas b/listpackages.sas index 490a5e4..47c1d43 100644 --- a/listpackages.sas +++ b/listpackages.sas @@ -36,7 +36,7 @@ */ /**#############################################################################**/ -/* Macros to list SAS packages in packages' folder, version 20200608 */ +/* Macros to list SAS packages in packages' folder, version 20020725 */ /* A SAS package is a zip file containing a group of SAS codes (macros, functions, datasteps generating data, etc.) wrapped up together and %INCLUDEed by @@ -53,7 +53,9 @@ /*** HELP END ***/ -%macro listPackages(); +%macro listPackages()/ +desc = 'Macro to list SAS package from `package` fileref, version 20020725.' +; %local ls_tmp ps_tmp notes_tmp source_tmp; %let filesWithCodes = WORK._%sysfunc(datetime(), hex16.)_; diff --git a/loadpackage.sas b/loadpackage.sas index e6f94a7..eece867 100644 --- a/loadpackage.sas +++ b/loadpackage.sas @@ -36,7 +36,7 @@ */ /**#############################################################################**/ -/* Macros to load, to get help, or to unload SAS packages, version 20200610 */ +/* Macros to load, to get help, or to unload SAS packages, version 20020725 */ /* A SAS package is a zip file containing a group of files with SAS code (macros, functions, datasteps generating data, etc.) wrapped up together and %INCLUDEed by @@ -71,8 +71,10 @@ and use loadPackage in the form: %loadPackage(PiPackage, zip=disk, options=) */ -)/secure; +)/secure /*** HELP END ***/ +desc = 'Macro to load SAS package, version 20020725. Run %loadPackage() for help info.' +; %if %superq(packageName) = %then %do; %put ; @@ -80,7 +82,7 @@ %put # This is short help information for the loadPackage macro #; %put ###############################################################################; %put # #; - %put # Macro to load SAS packages, version 20200610 #; + %put # Macro to load SAS packages, version 20020725 #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, datasteps generating #; @@ -199,8 +201,10 @@ and use unloadPackage in the form: %unloadPackage(PiPackage, zip=disk, options=) */ -)/secure; +)/secure /*** HELP END ***/ +desc = 'Macro to unload SAS package, version 20020725. Run %unloadPackage() for help info.' +; %if %superq(packageName) = %then %do; %put ; @@ -208,7 +212,7 @@ %put # This is short help information for the unloadPackage macro #; %put ###############################################################################; %put # #; - %put # Macro to unload SAS packages, version 20200610 #; + %put # Macro to unload SAS packages, version 20020725 #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, datasteps generating #; @@ -299,8 +303,10 @@ and use helpPackage in the form: %helpPackage(PiPackage, *, zip=disk, options=) */ -)/secure; +)/secure /*** HELP END ***/ +desc = 'Macro to get help about SAS package, version 20020725. Run %helpPackage() for help info.' +; %if %superq(packageName) = %then %do; %put ; @@ -308,7 +314,7 @@ %put # This is short help information for the helpPackage macro #; %put ###############################################################################; %put # #; - %put # Macro to get help about SAS packages, version 20200610 #; + %put # Macro to get help about SAS packages, version 20020725 #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, datasteps generating #; @@ -447,9 +453,10 @@ TODO: , sourcePath = /* location of the package, e.g. "www.some.page/", mind the "/" at the end */ , replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */ ) +/secure /*** HELP END ***/ -/ -secure; +desc = 'Macro to install SAS package, version 20020725. Run %installPackage() for help info.' +; %if %superq(packageName) = %then %do; %put ; @@ -457,7 +464,7 @@ secure; %put # This is short help information for the installPackage macro #; %put ###############################################################################; %put # #; - %put # Macro to install SAS packages, version 20200610 #; + %put # Macro to install SAS packages, version 20020725 #; %put # #; %put # A SAS package is a zip file containing a group #; %put # of SAS codes (macros, functions, datasteps generating #;