Compare commits

...

60 Commits

Author SHA1 Message Date
yabwon
e97c8e31ad version 20200911
SAS Packages Framework, version 20200911:
- New macros added: %loadPackageS() and %verifyPackage()
- %installPackage() allow to install multiple packages with in run
- %listPackages() updated
- %generatePackage() provides hash digest of the package zip file (for SAS 9.54M6 and later)
- Bug fixes
- New version of documentation and "getting started"

Packages recompiled with new version of SAS Packages Framework:
- BasePlus [0.62]
- getVars() modified to handle "long" lists of variables
- QuickSort functions added
- SQLinDS [2.1]
- DFA (Dynamic Function Arrays) [0.2]
- macroArray [0.4]
-new parameter `which=` added to the %do_over macro
- dynMacroArray [0.2]
2020-09-11 13:54:04 +02:00
yabwon
16d55d7dcb version 20200911
SAS Packages Framework, version 20200911:
- New macros added: %loadPackageS() and %verifyPackage()
- %installPackage() allow to install multiple packages with in run
- %listPackages() updated
- %generatePackage() provides hash digest of the package zip file (for SAS 9.54M6 and later)
- Bug fixes
- New version of documentation and "getting started"

Packages recompiled with new version of SAS Packages Framework:
- BasePlus [0.62]
  - getVars() modified to handle "long" lists of variables
  - QuickSort functions added
- SQLinDS [2.1]
- DFA (Dynamic Function Arrays) [0.2]
- macroArray [0.4]
  -new parameter `which=` added to the %do_over macro
- dynMacroArray [0.2]
2020-09-11 13:51:19 +02:00
yabwon
c54ef20fac Getting Started with SAS Packages
macroArray, version 0.4
2020-09-08 20:29:30 +02:00
yabwon
be2af5883a macroArray, version 0.4 2020-09-08 20:28:15 +02:00
yabwon
b867ed4309 Getting Started with SAS Packages
*macroArray* version 0.4
2020-09-07 10:26:35 +02:00
yabwon
6a53bbe50a macroArray version 0.4 2020-09-07 10:24:55 +02:00
yabwon
3e44e6b8ae macroArray v.0.4
New parameter added to the %do_over macro.

The `which=` is a _SPACE_ separated list of indexes which should be used, possible special characters are `H` and `L` which means high and low bound of an array, list could be set with colons(:) in form of start:end:by (no spaces between!), if by is omitted the default is 1. If possible use `1:5` rather `1 2 3 4 5` since the firs works faster.
2020-09-07 10:07:42 +02:00
yabwon
f3f7a3896a version 20200827 2020-08-27 21:07:15 +02:00
yabwon
7491d42378 version 20200827
version 20200827,
-improvement in the testing part of the framework code
2020-08-27 21:06:04 +02:00
yabwon
16a20907af BasePlus version 0.62
bugfixes in sorting functions [experimental]
2020-08-19 16:41:16 +02:00
yabwon
f3107f0db3 BasePlus version 0.61
- getVars() modified to handle "long" lists of variables
- first iteration of QuickSort functions added [still experimental]
2020-08-18 12:27:08 +02:00
yabwon
0ca3eac3c9 BasePlus version 0.6
- getVars() modified to handle "long" lists of variables
 - first iteration of QuickSort functions added [still experimental]
2020-08-18 12:13:27 +02:00
yabwon
4eac2a0fea Merge branch 'master' of https://github.com/yabwon/SAS_PACKAGES 2020-08-15 13:18:06 +02:00
yabwon
ad81e0cb0e version 20200815
version 20200815, changes:
- Type PROTO added in the `%genaratePackge()` macro. Functions generated by Proc Proto in `externC functionName;` and `externCend;` blocks are available.
- Bug fix in the `%listPackages()` macro.
- Documentation updated.
2020-08-15 13:17:57 +02:00
yabwon
f542d70332 Getting Started with SAS Packages
recompiled with new version of the framework
2020-08-12 14:45:20 +02:00
yabwon
80fdc9f214 version 0.3
recompiled with new version of the framework
2020-08-12 14:43:05 +02:00
yabwon
f23afe7486 version 0.2
recompiled with new version of the framework
2020-08-12 14:42:48 +02:00
yabwon
e467959d77 version 2.1
recompiled with new version of the framework
2020-08-12 14:42:14 +02:00
yabwon
035e184b74 version v0.53
bug fixes and recompiled with new version of the framework
2020-08-12 14:41:48 +02:00
yabwon
61d5806e79 version 20200811
version 20200811, changes:
- in the %generatePackage() macro the filesLocation is now positional parameter (the first one),
- in the framework both `%loadPackage()` and %loadPackage(HELP)` command prints out the help information for the %loadPackage() macro,
- the %ICEloadPackage() macro extended with version testing,
- test for existence of %loadpackage macro added,
- bug fix in lazyData generation
- help section search improved
- documentation updated.
2020-08-12 14:29:47 +02:00
yabwon
98871647dd Getting Started with SAS Packages
*BasePlus* 0.53
2020-08-12 13:56:35 +02:00
yabwon
16b744a763 version 20200811 2020-08-12 13:55:35 +02:00
yabwon
4765dc5c43 Getting Started with SAS Packages
BasePlus v0.53
2020-08-12 13:54:19 +02:00
yabwon
e1c95da0b7 version 20200811 2020-08-12 13:53:06 +02:00
yabwon
319dd8c46b Merge branch 'master' of https://github.com/yabwon/SAS_PACKAGES 2020-08-12 13:52:06 +02:00
yabwon
96555584a3 version 0.53
bug fix in the %getVars() and %QgetVars() macros
2020-08-12 13:52:02 +02:00
yabwon
a6cfb9f93f Getting Started with SAS Packages
Recompiled with new version of SAS Packages Framework.
2020-08-11 16:54:45 +02:00
yabwon
63b30d7b6e version 0.3
Recompiled with new version of SAS Packages Framework.
2020-08-11 16:54:08 +02:00
yabwon
eef8649f3c version 0.2
Recompiled with new version of SAS Packages Framework.
2020-08-11 16:53:57 +02:00
yabwon
4511c812f0 version 2.1
Recompiled with new version of SAS Packages Framework.
2020-08-11 16:53:28 +02:00
yabwon
5ca878d178 version 0.52
Recompiled with new version of SAS Packages Framework.
2020-08-11 16:53:18 +02:00
yabwon
5c042cadff Merge branch 'master' of https://github.com/yabwon/SAS_PACKAGES 2020-08-11 16:44:43 +02:00
yabwon
3eb09f29cd version 20200811
version 20200811, changes:
- in the %generatePackage() macro the filesLocation is now positional parameter (the first one),
- in the framework both `%loadPackage()` and %loadPackage(HELP)` command prints out the help information for the %loadPackage() macro,
- the %ICEloadPackage() macro extended with version testing,
- test for existence of %loadpackage macro added,
- bug fix in lazyData generation
- documentation updated.
2020-08-11 16:44:38 +02:00
yabwon
da3c8df259 Getting Started with SAS Packages
Recompiled with new version of SAS Packages Framework.
2020-08-11 15:10:33 +02:00
yabwon
b9fa8fc5d7 version 2.1
Recompiled with new version of SAS Packages Framework.
2020-08-11 15:08:44 +02:00
yabwon
1fda328de8 version 0.3
Recompiled with new version of SAS Packages Framework.
2020-08-11 15:08:16 +02:00
yabwon
322a951290 version 0.2
Recompiled with new version of SAS Packages Framework.
2020-08-11 15:07:55 +02:00
yabwon
b090fdbe8d version 0.52
Recompiled with new version of SAS Packages Framework.
2020-08-11 15:07:17 +02:00
yabwon
42663d56f7 version 20200811
version 20200811, changes:
- in the %generatePackage() macro the filesLocation is now positional parameter (the first one),
- in the framework both `%loadPackage()` and %loadPackage(HELP)` command prints out the help information for the %loadPackage() macro,
- bug fix in lazyData generation
- documentation updated.
2020-08-11 14:47:41 +02:00
yabwon
bed882582e version 20200811 2020-08-11 12:34:49 +02:00
yabwon
532f1ec90e version 20200811
version 20200811, changes:
- in the %generatePackage() macro the filesLocation is now positional parameter (the first one),
- in the framework both `%loadPackage()` and %loadPackage(HELP)` command prints out the help information for the %loadPackage() macro,
- documentation updated.
2020-08-11 12:34:10 +02:00
yabwon
861c5d866b Getting Started with SAS Packages
BasePlus v0.52 recompiled
2020-08-10 14:55:10 +02:00
yabwon
f22d06fb42 version 20200810 2020-08-10 14:54:10 +02:00
yabwon
c0212cb8af version 0.52
recompiled with the new framework
2020-08-10 14:53:27 +02:00
yabwon
4ae8f23716 version 20200810
Version 20200810.
Parsing of the `description.sas` file improved.
Documentation corrected.
2020-08-10 14:52:47 +02:00
yabwon
7fd4dd9774 Getting Started with SAS Packages
BasePlus v0.52
2020-08-07 13:03:03 +02:00
yabwon
f41d73cd90 version 20200708 2020-08-07 13:02:08 +02:00
yabwon
863d6cb251 version 0.52
Help info added: "Caution! Array parameters to subroutine calls must be 1-based."

Spelling correction.
2020-08-07 13:00:52 +02:00
yabwon
790816e229 version 20200807
Framework:
Code searching help tags simplified.

Documentation:
Clarification about "description.sas" added.
2020-08-07 12:58:50 +02:00
yabwon
88ace7321b version 20200803
20200803
2020-08-05 12:29:31 +02:00
yabwon
f4ac0f1fe3 version 20200803
help info for %listPackages() added
2020-08-05 12:27:08 +02:00
yabwon
eb5cd6975c Getting Started with SAS Packages
presentation: "Getting Started with SAS Packages" added
2020-08-04 13:04:29 +02:00
yabwon
b975f75ff3 Getting Started with SAS Packages
presentation: "Getting Started with SAS Packages" added
2020-08-04 10:37:40 +02:00
yabwon
bb22a3e274 Getting Started with SAS Packages
Getting Started with SAS Packages
2020-08-04 10:33:14 +02:00
yabwon
f981751c28 Getting Started with SAS Packages
Getting Started with SAS Packages
2020-08-04 10:30:19 +02:00
yabwon
2f110adf1f Getting Started with SAS Packages
presentation: "Getting Started with SAS Packages" added
2020-08-04 10:19:55 +02:00
yabwon
5b1f8a3aae Getting Started with SAS Packages
presentation: "Getting Started with SAS Packages" added
2020-08-04 10:18:04 +02:00
yabwon
ef6473ad35 link to the doc added
link to the doc added
2020-08-04 10:14:43 +02:00
yabwon
e30261410e obsolete
obsolete
2020-08-04 07:17:31 +02:00
yabwon
3ede4541fd version 20200803
version 20200803, some code simplifications
2020-08-03 13:56:18 +02:00
12 changed files with 759 additions and 253 deletions

View File

@@ -6,13 +6,15 @@ 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 `20200730`.
In this repository we are presenting the **SAS Packages Framework** which allows to develop and use SAS packages. The latest version of SPF is **`20200911`**.
Read the **`SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf`** to learn more (see the `./SPF/Documentation` directory).
To get started with SAS Packages try this [**`Getting Started with SAS Packages`**](https://github.com/yabwon/SAS_PACKAGES/blob/master/SPF/Documentation/Getting_Started_with_SAS_Packages.pdf "Getting Started with SAS Packages") presentation (see the `./SPF/Documentation` directory).
The documentation and more advance reading would be the [**`SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf`**](https://github.com/yabwon/SAS_PACKAGES/blob/master/SPF/Documentation/SAS(r)%20packages%20-%20the%20way%20to%20share%20(a%20how%20to)-%20Paper%204725-2020%20-%20extended.pdf "SAS packages - the way to share") article (see the `./SPF/Documentation` directory).
**General overview video:**
- SAS Global Forum 2020 V.E.: `https://www.youtube.com/watch?v=qCkb-bx0Dv8&t=0s`
- Sasensei Internationa Dojo: `https://www.youtube.com/watch?v=BFhdUBQgjYQ&t=0s`
- [SAS Global Forum 2020 V.E.](https://www.youtube.com/watch?v=qCkb-bx0Dv8&t=0s "SGF2020")
- [Sasensei Internationa Dojo](https://www.youtube.com/watch?v=BFhdUBQgjYQ&t=0s "SID no. 1")
### The User:
To use a package:
@@ -45,12 +47,12 @@ filename SPFinit url "https://raw.githubusercontent.com/yabwon/SAS_PACKAGES/mast
%loadPackage(packageName) /* load the package content into the SAS session */
```
**Workshop video for the User**\[May 6th, 2020\]**: `https://youtu.be/qX_-HJ76g8Y`** [a bit outdated but gives the idea how it works]
[**Workshop video for the User**](https://youtu.be/qX_-HJ76g8Y)\[May 6th, 2020\] [a bit outdated but gives the idea how it works]
### The Developer:
To create your own package:
- Read the **`SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf`** to learn more details.
- Download and use the `SPFinit.sas` file (the SAS Packages Framework) file (user part of the framework required for *testing* is there too).
- Read the [**`SAS(r) packages - the way to share (a how to)- Paper 4725-2020 - extended.pdf`**](https://github.com/yabwon/SAS_PACKAGES/blob/master/SPF/Documentation/SAS(r)%20packages%20-%20the%20way%20to%20share%20(a%20how%20to)-%20Paper%204725-2020%20-%20extended.pdf "SAS packages - the way to share") to learn more details.
- Download and use the `SPFinit.sas` file (the SAS Packages Framework), the part of the framework required for *testing* is there too.
#### If you have any questions, suggestions, or ideas do not hesitate to contact me!
@@ -69,24 +71,37 @@ data class;
set %SQL(select * from sashelp.class order by age);
run;
```
SHA256 digest for SQLinDS: 3EBC11A0890B6128DDB51643DC91F9DA1BDBF283535664540887FA7E7EA9744F
- **DFA** (Dynamic Function Arrays)\[0.2\], 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.
- **macroArray**\[0.3\], implementation of an array concept in a macrolanguage, e.g.
SHA256 digest for DFA: BB8768E977D62429368CFF2E5338A6553C35C998AEC09AF24088BA713BB54DDA
- **macroArray**\[0.4\], implementation of an array concept in a macrolanguage, e.g.
```
%array(ABC[17] (111:127), macarray=Y);
%macro test();
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%mend;
%test()
%let %ABC(13,i) = 99999; /* i = insert */
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%let %ABC(13,i) = 999; /* i = insert */
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%do_over(ABC, phrase=%nrstr(
%put &_i_.%) %ABC(&_i_.);
),
which = 1:H:2
);
```
SHA256 digest for macroArray: 5C9208ADD091E354794C24FA830F527D17CFC758C24CB77BF2154949059F7E6F
- **BasePlus**\[0.5\] adds a bunch of functionalities I am missing in BASE SAS, such as:
- **BasePlus**\[0.62\] adds a bunch of functionalities I am missing in BASE SAS, such as:
```
call arrMissToRight(myArray);
call arrFillMiss(17, myArray);
@@ -98,9 +113,14 @@ string = catXFn("date9.", "#", myArray);
format x bool.;
%put %getVars(sashelp.class, patern = ght$, sep = +, varRange = _numeric_);
%put %getVars(sashelp.class, pattern = ght$, sep = +, varRange = _numeric_);
```
SHA256 digest for BasePlus: 278621A6D8BBBB791DEA4C215D4261F2CB8F8B76B1397F7FA9B2E4219E77CB5A
- **dynMacroArray**\[0.2\], set of macros (wrappers for a hash table) emulating dynamic array in the data step (macro predecessor of DFA)
SHA256 digest for dynMacroArray: 066186B94B2976167C797C6A6E6217E361E8DEB10F2AB81906E0A325E5243084
### ======

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,7 @@
## Available packages:
## SAS Packages:
To get started with SAS Packages try this [**`Getting Started with SAS Packages`**](https://github.com/yabwon/SAS_PACKAGES/blob/master/SPF/Documentation/Getting_Started_with_SAS_Packages.pdf "Getting Started with SAS Packages") presentation (see the `./SPF/Documentation` directory).
## Available packages:
Currently the following packages are available:
- **SQLinDS**\[2.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.
@@ -13,10 +16,12 @@ data class;
WH = weight + height;
run;
```
SHA256 digest for SQLinDS: 3EBC11A0890B6128DDB51643DC91F9DA1BDBF283535664540887FA7E7EA9744F
- **DFA** (Dynamic Function Arrays)\[0.2\], 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.
```
%createDFArray(ArrDynamic, resizefactor=17);
%createDFArray(ArrDynamic, resizefactor=17);
data _null_;
call ArrDynamic("Allocate", -2, 2);
@@ -41,23 +46,32 @@ data _null_;
end;
run;
```
SHA256 digest for DFA: BB8768E977D62429368CFF2E5338A6553C35C998AEC09AF24088BA713BB54DDA
- **macroArray**\[0.3\], implementation of an array concept in a macrolanguage, e.g.
- **macroArray**\[0.4\], implementation of an array concept in a macrolanguage, e.g.
```
%array(ABC[17] (111:127), macarray=Y);
%macro test();
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%mend;
%test()
%let %ABC(13,i) = 99999; /* i = insert */
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%let %ABC(13,i) = 999; /* i = insert */
%do i = 1 %to 17;
%put &i.) %ABC(&i.);
%end;
%do_over(ABC, phrase=%nrstr(
%put &_i_.%) %ABC(&_i_.);
),
which = 1:H:2
);
```
SHA256 digest for macroArray: 5C9208ADD091E354794C24FA830F527D17CFC758C24CB77BF2154949059F7E6F
- **BasePlus**\[0.5\] adds a bunch of functionalities I am missing in BASE SAS, such as:
- **BasePlus**\[0.62\] adds a bunch of functionalities I am missing in BASE SAS, such as:
```
call arrMissToRight(myArray);
call arrFillMiss(17, myArray);
@@ -69,8 +83,11 @@ string = catXFn("date9.", "#", myArray);
format x bool.;
%put %getVars(sashelp.class, patern = ght$, sep = +, varRange = _numeric_);
%put %getVars(sashelp.class, pattern = ght$, sep = +, varRange = _numeric_);
```
SHA256 digest for BasePlus: 278621A6D8BBBB791DEA4C215D4261F2CB8F8B76B1397F7FA9B2E4219E77CB5A
- **dynMacroArray**\[0.2\], set of macros (wrappers for a hash table) emulating dynamic array in the data step (macro predecessor of DFA)
SHA256 digest for dynMacroArray: 066186B94B2976167C797C6A6E6217E361E8DEB10F2AB81906E0A325E5243084

View File

@@ -0,0 +1,7 @@
/* 20200911 */
sqlindsdemo: CCA3CB51587E30D1A4338EAF732EF03E0922918AAA21C3ECF85CABE93CD2FB15
macroArray: 5C9208ADD091E354794C24FA830F527D17CFC758C24CB77BF2154949059F7E6F
BasePlus: 278621A6D8BBBB791DEA4C215D4261F2CB8F8B76B1397F7FA9B2E4219E77CB5A
SQLinDS: 3EBC11A0890B6128DDB51643DC91F9DA1BDBF283535664540887FA7E7EA9744F
dynMacroArray: 066186B94B2976167C797C6A6E6217E361E8DEB10F2AB81906E0A325E5243084
DFA: BB8768E977D62429368CFF2E5338A6553C35C998AEC09AF24088BA713BB54DDA

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.