13%let work=%sysfunc(pathname(work));
27 file
"&root/test.txt";
28 put
"houston, this is a test";
31%mp_zip(in=&root/test.txt
37%mp_unzip(ziploc=
"&work/myFile.zip",outdir=&work)
40 infile
"&work/test.txt";
42 call symputx(
'content1',_infile_);
48 %str(&content1)=%str(houston,
this is a test)
50 desc=Checking
if file zip / unzip works,
51 outds=work.test_results
56 file
"&root/test2.txt";
57 put
"houston, this is test2";
61 filepath=
"&root/test2.txt";
71%mp_unzip(ziploc=
"&work/myFile2.zip",outdir=&work)
74 infile
"&work/test2.txt";
76 call symputx('content2',_infile_);
82 %str(&content2)=%str(houston, this is test2)
84 desc=Checking if file zip / unzip from a dataset works,
85 outds=work.test_results
97%mp_unzip(ziploc=
"&work/myFile3.zip",outdir=&work/out3)
100 infile
"&work/out3/test.txt";
102 call symputx('content3a',_infile_);
106 infile
"&work/out3/test2.txt";
108 call symputx('content3b',_infile_);
114 %str(&content3a)=%str(houston, this is a test)
116 %str(&content3b)=%str(houston, this is test2)
118 desc=Checking if file zip / unzip from a directory works,
119 outds=work.test_results