*options obs = 10; *libname save ','; filename raw pipe 'zcat /home/data/mare_winship/mw_ind.dat.Z'; *filename raw pipe 'zcat /home/data/mare_winship/cpsmw??.raw.Z'; *filename out pipe 'compress >outfile.Z'; data; length default=4; infile raw lrecl=10; input year 1-2 ind 3-5; run; proc freq; tables ind*year; /* Users of other packages can use the Unix 'cut' command to make similar extracts. For example: zcat /home/data/mare_winship/cpsmw??.raw.Z|cut-c13-14,100-102 > mw_ind.dat */