mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2026-01-09 07:50:06 +00:00
@@ -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
|
/* A SAS package is a zip file containing a group
|
||||||
of SAS codes (macros, functions, datasteps generating
|
of SAS codes (macros, functions, datasteps generating
|
||||||
data, etc.) wrapped up together and %INCLUDEed by
|
data, etc.) wrapped up together and %INCLUDEed by
|
||||||
@@ -54,8 +54,10 @@
|
|||||||
default value Y means "execute tests" */
|
default value Y means "execute tests" */
|
||||||
,packages= /* location of other packages if there are
|
,packages= /* location of other packages if there are
|
||||||
dependencies in loading */
|
dependencies in loading */
|
||||||
)/secure;
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
|
desc = 'Macro to generate SAS packages, version 20020725. Run %generatePackage() for help info.'
|
||||||
|
;
|
||||||
%if %superq(filesLocation) = %then
|
%if %superq(filesLocation) = %then
|
||||||
%do;
|
%do;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -63,7 +65,7 @@
|
|||||||
%put # This is short help information for the generatePackage macro #;
|
%put # This is short help information for the generatePackage macro #;
|
||||||
%put ###############################################################################;
|
%put ###############################################################################;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to generate SAS packages, version 20200619 #;
|
%put # Macro to generate SAS packages, version 20020725 #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, datasteps generating #;
|
%put # of SAS codes (macros, functions, datasteps generating #;
|
||||||
@@ -1190,7 +1192,7 @@ data _null_;
|
|||||||
put ' end ; ';
|
put ' end ; ';
|
||||||
%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; ' /;
|
put 'run; ' /;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
/* A SAS package is a zip file containing a group
|
||||||
of SAS codes (macros, functions, datasteps generating
|
of SAS codes (macros, functions, datasteps generating
|
||||||
data, etc.) wrapped up together and %INCLUDEed by
|
data, etc.) wrapped up together and %INCLUDEed by
|
||||||
@@ -53,7 +53,9 @@
|
|||||||
/*** HELP END ***/
|
/*** 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;
|
%local ls_tmp ps_tmp notes_tmp source_tmp;
|
||||||
%let filesWithCodes = WORK._%sysfunc(datetime(), hex16.)_;
|
%let filesWithCodes = WORK._%sysfunc(datetime(), hex16.)_;
|
||||||
|
|||||||
@@ -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
|
/* A SAS package is a zip file containing a group of files
|
||||||
with SAS code (macros, functions, datasteps generating
|
with SAS code (macros, functions, datasteps generating
|
||||||
data, etc.) wrapped up together and %INCLUDEed by
|
data, etc.) wrapped up together and %INCLUDEed by
|
||||||
@@ -71,8 +71,10 @@
|
|||||||
and use loadPackage in the form:
|
and use loadPackage in the form:
|
||||||
%loadPackage(PiPackage, zip=disk, options=)
|
%loadPackage(PiPackage, zip=disk, options=)
|
||||||
*/
|
*/
|
||||||
)/secure;
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
|
desc = 'Macro to load SAS package, version 20020725. Run %loadPackage() for help info.'
|
||||||
|
;
|
||||||
%if %superq(packageName) = %then
|
%if %superq(packageName) = %then
|
||||||
%do;
|
%do;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -80,7 +82,7 @@
|
|||||||
%put # This is short help information for the loadPackage macro #;
|
%put # This is short help information for the loadPackage macro #;
|
||||||
%put ###############################################################################;
|
%put ###############################################################################;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to load SAS packages, version 20200610 #;
|
%put # Macro to load SAS packages, version 20020725 #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, datasteps generating #;
|
%put # of SAS codes (macros, functions, datasteps generating #;
|
||||||
@@ -199,8 +201,10 @@
|
|||||||
and use unloadPackage in the form:
|
and use unloadPackage in the form:
|
||||||
%unloadPackage(PiPackage, zip=disk, options=)
|
%unloadPackage(PiPackage, zip=disk, options=)
|
||||||
*/
|
*/
|
||||||
)/secure;
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
|
desc = 'Macro to unload SAS package, version 20020725. Run %unloadPackage() for help info.'
|
||||||
|
;
|
||||||
%if %superq(packageName) = %then
|
%if %superq(packageName) = %then
|
||||||
%do;
|
%do;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -208,7 +212,7 @@
|
|||||||
%put # This is short help information for the unloadPackage macro #;
|
%put # This is short help information for the unloadPackage macro #;
|
||||||
%put ###############################################################################;
|
%put ###############################################################################;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to unload SAS packages, version 20200610 #;
|
%put # Macro to unload SAS packages, version 20020725 #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, datasteps generating #;
|
%put # of SAS codes (macros, functions, datasteps generating #;
|
||||||
@@ -299,8 +303,10 @@
|
|||||||
and use helpPackage in the form:
|
and use helpPackage in the form:
|
||||||
%helpPackage(PiPackage, *, zip=disk, options=)
|
%helpPackage(PiPackage, *, zip=disk, options=)
|
||||||
*/
|
*/
|
||||||
)/secure;
|
)/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
|
desc = 'Macro to get help about SAS package, version 20020725. Run %helpPackage() for help info.'
|
||||||
|
;
|
||||||
%if %superq(packageName) = %then
|
%if %superq(packageName) = %then
|
||||||
%do;
|
%do;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -308,7 +314,7 @@
|
|||||||
%put # This is short help information for the helpPackage macro #;
|
%put # This is short help information for the helpPackage macro #;
|
||||||
%put ###############################################################################;
|
%put ###############################################################################;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to get help about SAS packages, version 20200610 #;
|
%put # Macro to get help about SAS packages, version 20020725 #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, datasteps generating #;
|
%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 */
|
, 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 */
|
, replace = 1 /* 1 = replace if the package already exist, 0 = otherwise */
|
||||||
)
|
)
|
||||||
|
/secure
|
||||||
/*** HELP END ***/
|
/*** HELP END ***/
|
||||||
/
|
desc = 'Macro to install SAS package, version 20020725. Run %installPackage() for help info.'
|
||||||
secure;
|
;
|
||||||
%if %superq(packageName) = %then
|
%if %superq(packageName) = %then
|
||||||
%do;
|
%do;
|
||||||
%put ;
|
%put ;
|
||||||
@@ -457,7 +464,7 @@ secure;
|
|||||||
%put # This is short help information for the installPackage macro #;
|
%put # This is short help information for the installPackage macro #;
|
||||||
%put ###############################################################################;
|
%put ###############################################################################;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # Macro to install SAS packages, version 20200610 #;
|
%put # Macro to install SAS packages, version 20020725 #;
|
||||||
%put # #;
|
%put # #;
|
||||||
%put # A SAS package is a zip file containing a group #;
|
%put # A SAS package is a zip file containing a group #;
|
||||||
%put # of SAS codes (macros, functions, datasteps generating #;
|
%put # of SAS codes (macros, functions, datasteps generating #;
|
||||||
|
|||||||
Reference in New Issue
Block a user