11%let test1=%mf_getvarlist(sashelp.class);
12%let test2=%mf_getvarlist(sashelp.class,dlm=X);
13%let test3=%mf_getvarlist(sashelp.class,dlm=%str(,),quote=
double);
14%let test4=%mf_getvarlist(sashelp.class,typefilter=N);
15%let test5=%mf_getvarlist(sashelp.class,typefilter=C);
17data work.test_results;
18 length test_description $256 test_result $4 test_comments base result $256;
19 test_description=
"Basic test";
21 result=
'Name Sex Age Height Weight';
22 if base=result then test_result=
'PASS';
23 else test_result=
'FAIL';
24 test_comments=
"Comparing "!!trim(base)!!
' vs '!!trim(result);
27 test_description=
"DLM test";
29 result=
'NameXSexXAgeXHeightXWeight';
30 if base=result then test_result=
'PASS';
31 else test_result=
'FAIL';
32 test_comments=
"Comparing "!!trim(base)!!
' vs '!!trim(result);
35 test_description=
"DLM + quote test";
37 result=
'"Name","Sex","Age","Height","Weight"';
38 if base=result then test_result=
'PASS';
39 else test_result=
'FAIL';
40 test_comments=
"Comparing "!!trim(base)!!
' vs '!!trim(result);
43 test_description=
"Numeric Filter";
45 result=
'Age Height Weight';
46 if base=result then test_result=
'PASS';
47 else test_result=
'FAIL';
48 test_comments=
"Comparing "!!trim(base)!!
' vs '!!trim(result);
51 test_description=
"Char Filter";
54 if base=result then test_result=
'PASS';
55 else test_result=
'FAIL';
56 test_comments=
"Comparing "!!trim(base)!!
' vs '!!trim(result);