13%let work=%sysfunc(pathname(work));
20 file
"&root/test.txt";
21 put
"houston, this is a test";
24%mp_zip(in=&root/test.txt
30%mp_unzip(ziploc=
"&work/myFile.zip",outdir=&work)
33 infile
"&work/test.txt";
35 call symputx(
'content1',_infile_);
41 %str(&content1)=%str(houston,
this is a test)
43 desc=Checking
if file zip / unzip works,
44 outds=work.test_results
49 file "&root/test2.txt";
50 put "houston, this is test2";
54 filepath="&root/test2.txt";
64%mp_unzip(ziploc="&work/myFile2.zip",outdir=&work)
67 infile "&work/test2.txt";
69 call symputx('content2',_infile_);
75 %str(&content2)=%str(houston, this is test2)
77 desc=Checking if file zip / unzip from a dataset works,
78 outds=work.test_results
90%mp_unzip(ziploc="&work/myFile3.zip",outdir=&work/out3)
93 infile "&work/out3/test.txt";
95 call symputx('content3a',_infile_);
99 infile "&work/out3/test2.txt";
101 call symputx('content3b',_infile_);
107 %str(&content3a)=%str(houston, this is a test)
109 %str(&content3b)=%str(houston, this is test2)
111 desc=Checking if file zip / unzip from a directory works,
112 outds=work.test_results