From c54ef20fac9d55a104a32e0fa0629aad16e748a1 Mon Sep 17 00:00:00 2001 From: yabwon Date: Tue, 8 Sep 2020 20:29:30 +0200 Subject: [PATCH] Getting Started with SAS Packages macroArray, version 0.4 --- packages/README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/README.md b/packages/README.md index dd51796..a2b930b 100644 --- a/packages/README.md +++ b/packages/README.md @@ -48,16 +48,21 @@ run; - **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 + ); ``` - **BasePlus**\[0.62\] adds a bunch of functionalities I am missing in BASE SAS, such as: