0%

Create ZIP Files With ODS PACKAGE Statements in SAS 9.2

Starting in SAS 9.2, you can create your own ZIP files using ODS PACKAGE statements…

1
2
3
4
5
6
7
8
9
10
11
/************ODS begins************/
ods package(dmzip) open nopf;
ods package(dmzip) add file='/folders/myfolders/dm.sas7bdat';
ods package(dmzip) add file='/folders/myfolders/dm2.sas7bdat' path='data/';
ods package(dmzip) publish archive
properties(
archive_name='dm.zip'
archive_path='/folders/myfolders/'
);
ods package(dmzip) close;
/************ODS ends************/


Reference:

- SAS Support: Base SAS ODS PACKAGE Resources
- US CFR 21 Part 11 as of June 6, 2019
- Wikipedia: Trial master file