mirror of
https://github.com/SASPAC/macroarray.git
synced 2026-01-12 23:30:05 +00:00
## The `macroArray` package [ver. 1.2.5] --- ### Changes: - Bug fix in the `%concatArrays()` macro. - Spelling fix in log message of the `%make_do_over()` macro. --- SHA256 hash digest: `F*FFF2C3D854F9B5677F561BA2EB6FAA2CCC652D81F6AF9473ADF0A4CE977E43F0`
31 lines
811 B
Markdown
31 lines
811 B
Markdown
### `macroArray` - Macroarrays for macro codes
|
|
|
|
---
|
|
|
|
The **macroArray** package implements an array, a hash table, and a dictionary concept in macrolanguage. For example:
|
|
```sas
|
|
%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_over(ABC, phrase=%nrstr(
|
|
%put &_i_.%) %ABC(&_i_.);
|
|
),
|
|
which = 1:H:2
|
|
);
|
|
```
|
|
|
|
SHA256 digest for the latest version of `macroArray`: F*FFF2C3D854F9B5677F561BA2EB6FAA2CCC652D81F6AF9473ADF0A4CE977E43F0
|
|
|
|
[**Documentation for macroArray**](./macroarray.md "Documentation for macroArray")
|
|
|
|
To work with a package use the [**SAS Packages Framework**](https://github.com/yabwon/SAS_PACKAGES/blob/main/README.md "SPFinit").
|
|
|