41 ,outpath=%sysfunc(pathname(WORK))
46%let type=%upcase(&type);
51%
if &type=FILE %then %
do;
52 ods
package add file="&in" mimetype="application/x-compress";
54%
else %
if &type=DIRECTORY %then %
do;
55 %mp_dirlist(path=&in,outds=_data_)
59 length __command $4000;
60 if file_or_folder=
'file';
61 __command=cats(
'ods package add file="',filepath
62 ,
'" mimetype="application/x-compress";');
63 call execute(__command);
66 %
if &debug=NO %then %
do;
67 proc sql; drop table &ds;quit;
70%
else %
if &type=DATASET %then %
do;
73 length __command $4000;
74 __command=cats(
'ods package add file="',&incol
75 ,
'" mimetype="application/x-compress";');
76 call execute(__command);
81ods
package publish archive properties
82 (archive_name="&outname..zip" archive_path="&outpath");