21filename ft15f001 temp;
24 put
'%let test1=SUCCESS;';
30%mp_assertscope(SNAPSHOT)
31%mx_createfile(&mcTestAppLoc/temp/&item, inref=ft15f001)
32%mp_assertscope(COMPARE,
33 desc=Test 1: mx_createfile does not leak scope,
34 ignorelist=MC0_JADP1LEN MC0_JADP2LEN MC0_JADP3LEN MC0_JADPNUM
35 MC0_JADVLEN MC2_JADP1LEN MC2_JADP2LEN MC2_JADPNUM MC2_JADVLEN
36 VIYAPROPERTIES VIYATYPEDEFNAME,
37 outds=work.test_results
44%macro check_content();
45 %let platform=%mf_getplatform();
46 %
if &platform=SASJS %then %
do;
48 %ms_getfile(&mcTestAppLoc/temp/&item..sas, outref=testref1)
51 %
else %
if &platform=SAS9 or &platform=SASMETA %then %
do;
53 %mm_getstpcode(tree=&mcTestAppLoc/temp/&item, outref=testref2)
56 %
else %
if &platform=SASVIYA %then %
do;
58 filename testref3 filesrvc folderpath=
"&mcTestAppLoc/temp";
59 %inc testref3(&item)/source2;
64%macro assert_result();
65 %let platform=%mf_getplatform();
66 %
if &platform=SASVIYA %then %
do;
68 iftrue=(%mfv_existfile(&mcTestAppLoc/temp/&item)=1),
69 desc=Test 1: VIYA - content file created,
70 outds=work.test_results
73 iftrue=(&test1=SUCCESS),
74 desc=Test 2: VIYA - file created with correct content,
75 outds=work.test_results
80 iftrue=(&test1=SUCCESS),
81 desc=Test 1: file created with correct content (&platform),
82 outds=work.test_results