unix - Reading zipped sas datasets and zipping them on the fly -


i working large files on unix server gzip compression capabilities , space purposes files remain zipped. know how read in zipped txtfile, to: 1) zip dataset created zipped txtfile 2) later set zipped sas dataset in datastep/procedure.

is possible? if please alter code below, do:

libname lib "path"; filename txtfile pipe "gzip -dc filepath";  data lib.ds1; **would zipped sas dataset**;     infile txtfile dlm="|" missover dsd;     input *columns*; run; data lib.ds2; **would zipped sas dataset**;     set lib.ds1; *setting zipped sas dataset; run; 

try executing gzip command sas session.

data _null_;   command = 'gzip -c /path/ds2.sas7bdat > /path/ds2.sas7bdat.gz';   call system (command); run; 

for testing purposes, keep -c option. way can keep original file , compare newly compressed one.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -