Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getfmtlist.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_getfmtlist macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getfmtlist.sas
7 @li mp_assert.sas
8 @li mp_assertscope.sas
9
10**/
11
12%mp_assertscope(SNAPSHOT)
13%put %mf_getfmtlist(sashelp.prdsale);
14%mp_assertscope(COMPARE)
15
16%mp_assert(
17 iftrue=(
18 "%mf_getfmtlist(sashelp.prdsale)"="DOLLAR $CHAR W MONNAME"
19 ),
20 desc=Checking basic numeric,
21 outds=work.test_results
22)
23
24%mp_assert(
25 iftrue=(
26 "%mf_getfmtlist(sashelp.shoes)"="$CHAR BEST DOLLAR"
27 ),
28 desc=Checking basic char,
29 outds=work.test_results
30)