1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-11 06:24:35 +00:00

feat: mp_ds2squeeze macro

This commit is contained in:
munja
2022-01-24 11:17:21 +01:00
parent 142b46570d
commit c3b89c7f7d
4 changed files with 166 additions and 3 deletions

View File

@@ -33,13 +33,15 @@
%macro mp_init(prefix=SASJS
)/*/STORE SOURCE*/;
%if %symexist(SASJS_PREFIX) %then %return; /* only run once */
%global
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
&prefix._INIT_NUM /* initialisation time as numeric */
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
&prefix.WORK /* avoid typing %sysfunc(pathname(work)) every time */
;
%if %length(&sasjs_prefix>0) %then %return; /* only run once */
%let sasjs_prefix=&prefix;
data _null_;