@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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  @file
3
- @brief Checks if a set of macro variables exist / contain values.
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 space separated list of macro variable names
18
- @param makeupcase= set to YES to convert all variable VALUES to
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. Default is SOFT (writes err to log).
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
- %if &mAbort=SOFT %then %put %str(ERR)OR: &abortmsg;
62
- %else %mf_abort(mac=mf_verifymacvars,type=&mabort,msg=&abortmsg);
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
@@ -36,5 +36,5 @@
36
36
  "@sasjs/cli": "3.6.0",
37
37
  "@sasjs/core": "4.4.4"
38
38
  },
39
- "version": "4.4.5"
39
+ "version": "4.4.6"
40
40
  }