11%mf_writefile(&sasjswork/myfile.txt,l1=some content,l2=more content)
13 infile
"&sasjswork/myfile.txt";
15 if _n_=2 then call symputx(
'test1',_infile_);
20 desc=Check code ran without errors,
21 outds=work.test_results
24 iftrue=(&test1=more content),
25 desc=Checking line was created,
26 outds=work.test_results
29%mf_writefile(&sasjswork/myfile.txt,l1=some content,l2=different content)
31 infile
"&sasjswork/myfile.txt";
33 if _n_=2 then call symputx(
'test2',_infile_);
38 desc=Check code ran without errors
for test2,
39 outds=work.test_results
42 iftrue=(&test2=different content),
43 desc=Checking second line was overwritten,
44 outds=work.test_results
48%mf_writefile(&sasjswork/myfile.txt
50 ,l1=%str(aah, content)
54 infile
"&sasjswork/myfile.txt";
56 if _n_=2 then call symputx(
'test3',_infile_);
57 if _n_=4 then call symputx(
'test4',_infile_);
62 desc=Check code ran without errors
for test2,
63 outds=work.test_results
66 iftrue=(&test3=different content),
67 desc=Checking second line was not overwritten,
68 outds=work.test_results
71 iftrue=(&test4=append content),
72 desc=Checking fourth line was appended,
73 outds=work.test_results