Macros for SAS Application Developers
https://github.com/sasjs/core
mp_abort.test.nofix.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Testing mp_abort macro
4  @details This is an unfixed problem with mp_abort when using the
5  'unclosed macro' technique. This is only relevant for 9.4m3 environments,
6  which can suffer from hung multibridge sessions from %abort and endsas.
7 
8  The issue is that when called within a macro, within a %include, AND that
9  macro contains subsequent logic, the service does not end cleanly - rather,
10  we see:
11 
12  ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.
13  ERROR: The macro TEST will stop executing.
14 
15  We are not able to test this without a 9.4m3 environment, it is marked as
16  nofix.
17 
18  <h4> SAS Macros </h4>
19  @li mp_abort.sas
20  @li mp_assert.sas
21 
22 **/
23 
24 %macro test();
25 
26 filename blah temp;
27 data _null_;
28  file blah;
29  put '%mp_abort();';
30 run;
31 %inc blah;
32 
33 %if 1=1 %then %put Houston - we have a problem here;
34 %mend test;
35 
36 %test()