@sasjs/core 4.4.5 → 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/mf_verifymacvars.sas +13 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@file
|
|
3
|
-
@brief Checks if a set of macro variables exist
|
|
3
|
+
@brief Checks if a set of macro variables exist AND contain values.
|
|
4
4
|
@details Writes ERROR to log if abortType is SOFT, else will call %mf_abort.
|
|
5
5
|
Usage:
|
|
6
6
|
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
<h4> SAS Macros </h4>
|
|
15
15
|
@li mf_abort.sas
|
|
16
16
|
|
|
17
|
-
@param verifyvars
|
|
18
|
-
@param makeupcase=
|
|
17
|
+
@param [in] verifyvars Space separated list of macro variable names
|
|
18
|
+
@param [in] makeupcase= (NO) Set to YES to convert all variable VALUES to
|
|
19
19
|
uppercase.
|
|
20
|
-
@param mAbort= Abort Type.
|
|
20
|
+
@param [in] mAbort= (SOFT) Abort Type. When SOFT, simply writes an err
|
|
21
|
+
message to the log.
|
|
21
22
|
Set to any other value to call mf_abort (which can be configured to abort in
|
|
22
23
|
various fashions according to context).
|
|
23
24
|
|
|
@@ -58,8 +59,14 @@
|
|
|
58
59
|
|
|
59
60
|
%goto exit_success;
|
|
60
61
|
%exit_err:
|
|
61
|
-
%
|
|
62
|
-
%
|
|
62
|
+
%put %str(ERR)OR: &abortmsg;
|
|
63
|
+
%mf_abort(iftrue=(&mabort ne SOFT),
|
|
64
|
+
mac=mf_verifymacvars,
|
|
65
|
+
msg=%str(&abortmsg)
|
|
66
|
+
)
|
|
67
|
+
0
|
|
68
|
+
%return;
|
|
63
69
|
%exit_success:
|
|
70
|
+
1
|
|
64
71
|
|
|
65
72
|
%mend mf_verifymacvars;
|
package/package.json
CHANGED