Compare commits

..

26 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
11 changed files with 601 additions and 198 deletions

View File

@@ -6,7 +6,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 `20200811`.
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`**.
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).
@@ -71,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.52\] 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);
@@ -100,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,7 +1,7 @@
## 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:
## 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.
@@ -16,6 +16,8 @@ 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.
```
@@ -44,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.52\] 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);
@@ -72,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.