42 ,outpath=%sysfunc(pathname(WORK))
47%let type=%upcase(&type);
52%
if &type=FILE %then %
do;
53 ods
package add file="&in" mimetype="application/x-compress";
55%
else %
if &type=DIRECTORY %then %
do;
58 %let ds=%mf_getuniquename(prefix=mpzip);
59 %mp_dirlist(path=&in,outds=&ds)
62 length __command $4000;
63 if file_or_folder=
'file';
64 __command=cats(
'ods package add file="',filepath
65 ,
'" mimetype="application/x-compress";');
66 call execute(__command);
69 %
if &debug=NO %then %
do;
70 proc sql; drop table &ds;quit;
73%
else %
if &type=DATASET %then %
do;
76 length __command $4000;
77 __command=cats(
'ods package add file="',&incol
78 ,
'" mimetype="application/x-compress";');
79 call execute(__command);
84ods
package publish archive properties
85 (archive_name="&outname..zip" archive_path="&outpath");