Skip to content

Commit

Permalink
SAS Packages Framework, version 20241027
Browse files Browse the repository at this point in the history
SAS Packages Framework, version 20241027
- new utility macro added (`%splitCodeForPackage()`)
- documentation and workshop materials updated
  • Loading branch information
yabwon committed Oct 28, 2024
1 parent c667bc6 commit 7a7f674
Show file tree
Hide file tree
Showing 16 changed files with 1,003 additions and 77 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Don't forget to **STAR** (:star:) the repository! :-)

### Current version:

**The latest version** of SPF is **`20241014`**.
**The latest version** of SPF is **`20241027`**.

To get started with SAS Packages try this [**`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).

Expand Down Expand Up @@ -163,6 +163,8 @@ The SAS Packages Framework [(short) documentation](https://github.com/yabwon/SAS

### Updates worth mentioning:

**Update**\[October 27th, 2024\]**:** `%splitCodeForPackage()` **utility macro is available. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20241027 "splitCodeForPackage"))**.

**Update**\[October 14th, 2024\]**:** `DS2PCK` and `DS2THR` **types for `PROC DS2` *threads* and *packages* added to the framework. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20241014 "PROC DS2"))**.

**Update**\[December 10th, 2023\]**:** `markdownDoc=` **parameter added to** `%generatePackage()` **macro, which allows to generate markdown file with documentation. Content is taken from the help information notes and the description. (see [here](https://github.com/yabwon/SAS_PACKAGES/releases/tag/20231210 "markdown documentation"))**.
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions SPF/Macros/extendpackagesfileref.sas
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
when empty the "packages" value is used */
)/secure
/*** HELP END ***/
des = 'Macro to list directories pointed by "packages" fileref, version 20241014. Run %extendPackagesFileref(HELP) for help info.'
des = 'Macro to list directories pointed by "packages" fileref, version 20241027. Run %extendPackagesFileref(HELP) for help info.'
;

%if %QUPCASE(&packages.) = HELP %then
Expand All @@ -22,7 +22,7 @@ des = 'Macro to list directories pointed by "packages" fileref, version 20241014
%put ### This is short help information for the `extendPackagesFileref` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
%put # Macro to list directories pointed by 'packages' fileref, version `20241014` #;
%put # Macro to list directories pointed by 'packages' fileref, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
16 changes: 8 additions & 8 deletions SPF/Macros/generatepackage.sas
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Macro to generate SAS packages.
Version 20241014
Version 20241027
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
Expand Down Expand Up @@ -43,7 +43,7 @@
file name be created */
)/ secure minoperator
/*** HELP END ***/
des = 'Macro to generate SAS packages, version 20241014. Run %generatePackage() for help info.'
des = 'Macro to generate SAS packages, version 20241027. Run %generatePackage() for help info.'
;
%if (%superq(filesLocation) = ) OR (%qupcase(&filesLocation.) = HELP) %then
%do;
Expand All @@ -58,7 +58,7 @@ des = 'Macro to generate SAS packages, version 20241014. Run %generatePackage()
%put ### This is short help information for the `generatePackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Macro to generate SAS packages, version `20241014` #;
%put # Macro to generate SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down Expand Up @@ -871,7 +871,7 @@ title6 "MD5 hashed fileref of package lowcase name: &_PackageFileref_.";
title8 "Required SAS packages: %qsysfunc(compress(%superq(packageReqPackages),%str(%'%")))" ; /* " */
%end;

footnote1 "SAS Packages Framework, version 20241014";
footnote1 "SAS Packages Framework, version 20241027";

proc print
data = &filesWithCodes.(drop=base folderRef fileRef rc folderid _abort_ fileId additionalContent)
Expand Down Expand Up @@ -1683,7 +1683,7 @@ data _null_;
%end;
put +(-1) '`.;''' /
' !! '' %put The macro generated: '' !! put(dtCASLudf, E8601DT19.-L) !! ";"' /
' !! '' %put with the SAS Packages Framework version 20241014.;''' /
' !! '' %put with the SAS Packages Framework version 20241027.;''' /
' !! '' %put ****************************************************************************;''' /
' !! '' %GOTO theEndOfTheMacro;''' /
' !! '' %end;''' ;
Expand Down Expand Up @@ -1848,7 +1848,7 @@ data _null_;
%end;
put +(-1) '`.; '' !!' /
''' %put The macro generated: ''' " !! put(dtIML, E8601DT19.-L) !! " '''; '' !!' /
''' %put with the SAS Packages Framework version 20241014.; '' !! ' /
''' %put with the SAS Packages Framework version 20241027.; '' !! ' /
''' %put ****************************************************************************; '' !! ' /
''' %GOTO theEndOfTheMacro; '' !! ' /
''' %end; '' !! ' /
Expand Down Expand Up @@ -2655,7 +2655,7 @@ data _null_;
%end;

put 'put " " / @3 "--------------------------------------------------------------------" / " ";'
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20241014`*";'
/ 'put @3 "*SAS package generated by SAS Package Framework, version `20241027`*";'
/ 'put " " / @3 "--------------------------------------------------------------------";';

put 'run; ' /;
Expand Down Expand Up @@ -3693,7 +3693,7 @@ data &filesWithCodes.markdown;
%end;

put " " / "--------------------------------------------------------------------" / " "
/ "*SAS package generated by SAS Package Framework, version `20241014`*"
/ "*SAS package generated by SAS Package Framework, version `20241027`*"
/ " " / "--------------------------------------------------------------------" / " ";

put "# The `&packageName.` package content";
Expand Down
4 changes: 2 additions & 2 deletions SPF/Macros/helppackage.sas
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
)/secure
/*** HELP END ***/
des = 'Macro to get help about SAS package, version 20241014. Run %helpPackage() for help info.'
des = 'Macro to get help about SAS package, version 20241027. Run %helpPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
Expand All @@ -43,7 +43,7 @@ des = 'Macro to get help about SAS package, version 20241014. Run %helpPackage()
%put ### This is short help information for the `helpPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Macro to get help about SAS packages, version `20241014` #;
%put # Macro to get help about SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
6 changes: 3 additions & 3 deletions SPF/Macros/installpackage.sas
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*+installPackage+*/
/* Macros to install SAS packages, version 20241014 */
/* Macros to install SAS packages, version 20241027 */
/* 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
Expand All @@ -23,7 +23,7 @@
/secure
minoperator
/*** HELP END ***/
des = 'Macro to install SAS package, version 20241014. Run %%installPackage() for help info.'
des = 'Macro to install SAS package, version 20241027. Run %%installPackage() for help info.'
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
%do;
Expand All @@ -38,7 +38,7 @@ des = 'Macro to install SAS package, version 20241014. Run %%installPackage() fo
%put ### This is short help information for the `installPackage` macro #;
%put #--------------------------------------------------------------------------------------------#;;
%put # #;
%put # Macro to install SAS packages, version `20241014` #;
%put # Macro to install SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
6 changes: 3 additions & 3 deletions SPF/Macros/listpackages.sas
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Macro to list SAS packages in packages folder.
Version 20241014
Version 20241027
A SAS package is a zip file containing a group
of SAS codes (macros, functions, data steps generating
Expand All @@ -23,7 +23,7 @@

%macro listPackages()
/secure PARMBUFF
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20241014.'
des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HELP) for help, version 20241027.'
;
%if %QUPCASE(&SYSPBUFF.) = %str(%(HELP%)) %then
%do;
Expand All @@ -38,7 +38,7 @@ des = 'Macro to list SAS packages from `packages` fileref, type %listPackages(HE
%put ### This is short help information for the `listPackages` macro #;
%put #-----------------------------------------------------------------------------------------#;;
%put # #;
%put # Macro to list available SAS packages, version `20241014` #;
%put # Macro to list available SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
4 changes: 2 additions & 2 deletions SPF/Macros/loadpackage.sas
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
)/secure
/*** HELP END ***/
des = 'Macro to load SAS package, version 20241014. Run %loadPackage() for help info.'
des = 'Macro to load SAS package, version 20241027. Run %loadPackage() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
Expand All @@ -52,7 +52,7 @@ minoperator
%put ### This is short help information for the `loadPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Macro to *load* SAS packages, version `20241014` #;
%put # Macro to *load* SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
8 changes: 3 additions & 5 deletions SPF/Macros/loadpackageaddcnt.sas
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
is provided in required version */
)/secure
/*** HELP END ***/
des = 'Macro to load additional content for a SAS package, version 20241014. Run %loadPackageAddCnt() for help info.'
des = 'Macro to load additional content for a SAS package, version 20241027. Run %loadPackageAddCnt() for help info.'
minoperator
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
Expand All @@ -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 `20241014` #;
%put # Macro to *load* additional content for a SAS package, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down Expand Up @@ -370,7 +370,5 @@ minoperator
%ENDofloadPackageAddCnt:
%mend loadPackageAddCnt;




/**/

4 changes: 2 additions & 2 deletions SPF/Macros/loadpackages.sas
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
)/secure
/*** HELP END ***/
des = 'Macro to load multiple SAS packages at one run, version 20241014. Run %loadPackages() for help info.'
des = 'Macro to load multiple SAS packages at one run, version 20241027. Run %loadPackages() for help info.'
parmbuff
;
%if (%superq(packagesNames) = ) OR (%qupcase(&packagesNames.) = HELP) %then
Expand All @@ -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 `20241014` #;
%put # Macro wrapper for the loadPackage macro, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
4 changes: 2 additions & 2 deletions SPF/Macros/previewpackage.sas
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
)/secure
/*** HELP END ***/
des = 'Macro to preview content of a SAS package, version 20241014. Run %previewPackage() for help info.'
des = 'Macro to preview content of a SAS package, version 20241027. Run %previewPackage() for help info.'
;
%if (%superq(packageName) = ) OR (%qupcase(&packageName.) = HELP) %then
%do;
Expand All @@ -38,7 +38,7 @@ des = 'Macro to preview content of a SAS package, version 20241014. Run %preview
%put ### This is short help information for the `previewPackage` macro #;
%put #-------------------------------------------------------------------------------#;
%put # #;
%put # Macro to get preview of a SAS packages, version `20241014` #;
%put # Macro to get preview of a SAS packages, version `20241027` #;
%put # #;
%put # A SAS package is a zip file containing a group #;
%put # of SAS codes (macros, functions, data steps generating #;
Expand Down
Loading

0 comments on commit 7a7f674

Please sign in to comment.