Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Updated -gzsave- package

From   Henrik Stovring <>
To   statalist <>
Subject   st: Updated -gzsave- package
Date   Thu, 27 Oct 2005 10:44:46 +0200

Dear Statalisters,

Thanks to Kit Baum, an updated version of the -gzsave- package is now
available from the SSC-archive. Briefly, the package allows easy
creation and opening of compressed data-files using the gzip compression
program, which can help save disk-space, and, in some situations,
network traffic and time. To get more information and install it, type
-search gzsave, all- in any net-aware Stata, and follow instructions.

The primary addition in the new version is that it now has been tested
to work on WindowsXP, when the compression program gzip has been
installed as well (freely available from Secondly,
both the -gzuse- and the -gzsave- command now sets the global macro
S_FN, meaning that for example -describe- correctly reports the filename
opened -- and not the temporary filename used in the process.
Consequently, the syntax in -gzsave- has been extended to allow the
filename being left unspecified, in which case the filename given by
S_FN is used. This is identical to the behavior of -save-. A warning has
been added to the help file, pointing out that it remains the users sole
responsibility that the name in S_FN is indeed what was intended. In
particular, careless switching between -save- and -gzsave- may cause
unwanted side-effects by for example creating a compressed dataset in
filename.dta, and not in the default filename.dta.gz.

Thanks goes to Jun Xu and Morten Andersen for suggestions and help with



Henrik St°vring, PhD

Research Unit of General Practice
University of Southern Denmark
J.B. Winsl°ws Vej 9
DK-5000 Odense C
Phone: (+45) 6550 3692
Fax: (+45) 6591 8296
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index