ABSTRACT
If you are running SAS
under Microsoft Windows, it could be worthwhile exploring the use of
WinZip along with the WinZip Command Line Add-On. The WinZip Command Line
Add-On provides the MS DOS command prompt equivalent to the WinZip utility. It
is very simple to use and can be readily employed in various ways, including
via SAS, to automate what would otherwise be achieved through WinZip's
graphical user interface.
INTRODUCTION
For those not familiar with WinZip software, it provides a
compression utility for use in a Windows environment. This utility offers a
method of archiving files in a compressed and/or encrypted form. Whilst the
interface is easy to use, managing files with it can be tedious and prone to
error. The WinZip Command Line Add-On is available for free and
provides all the functionality of the WinZip utility through
two additional MS DOS commands, namely, WZZIP and WZUNZIP. The advantage of
having these commands is that accessing the functionality of the WinZip utility
becomes enormously flexible. What can be done via the WinZip graphical user
interface can, when necessary, be automated. This paper firstly gives an
outline as to how to get started with the WinZip Command Line Add-On. Once set
up, the two commands, WZZIP and WZUNZIP become available as MS DOS commands.
These can be used to zip (compress) and unzip (de-compress) files respectively.
This is followed by a number of examples which shoulddemonstrate how the two
commands can be used directly from the MS DOS command prompt or from within
SAS.Two SAS macros are then presented, %WZZIP and %WZUNZIP. They should help to
make it easier to use thissoftware from within SAS. The macros and examples
given in this paper are available for download from
GETTING STARTED
The WinZip Command Line Add-On is available for download at
http://www.winzip.com/downcl.htm. Only the most recent version is available,
which at the time of writing is the version compatible with WinZip 10.0 Pro. In
addition, it requires the Windows 98, ME, 2000 or XP operating system. If you
are running an older version of WinZip, the corresponding download will have to
be sourced elsewhere.
The download consists of a single executable called
WZCLINE20.EXE (for WinZip version 9 the required file is called WZCLINE9.EXE).
Running this executable file creates several files in the whatever folder you
specify during the installation process), the ones of interest being
WZCLINE.HLP, WZZIP.EXE and WZUNZIP.EXE. WZCLINE.HLP is a Windows help file and
provides all the information needed to use the addon.The WZZIP.EXE and
WZUNZIP.EXE are responsible for providing the user with two new MS DOS
commands, i.e. WZZIP and WZUNZIP.In order that these commands are automatically
available at the MS DOS command prompt (without having to specify where the
WZZIP.EXE and WZUNZIP.EXE files were installed), you could do the following:Copy
the WZZIP.EXE and WZUNZIP.EXE files to a folder specified in your PATH
environment variable. To
Determine this (i.e. where exactly these files can be copied),
click on the following: Start → Settings → Control Panel → System A window
titled “System Properties” will appear on the screen with several tabs along
the top, one of which is labeled “Advanced”. Clicking on this, followed by a
click on the “Environment Variables” button, will lead to a window appearing on
screen as shown in Figure 1.
COMMAND STRUCTURE
The general structure of the WZZIP and WZUNZIP commands are
as follows (with the elements in brackets as
Optional:
Once the add-on has been installed, WZZIP and WZUNZIP
commands can be issued in a variety of ways, e.g. from the MS DOS command
prompt, from the Windows Run dialog, from batch files (.bat files), using
various scripting languages or via SAS. The focus here will be on the commands
themselves and how they are issued via SAS. Two SAS macros, %WZZIP and
%WZUNZIP, available in the WZ_Test.zip zip file can be used to issue WZZIP and WZUNZIP
commands respectively. Incidentally, the zip file also contains files (batch
and SAS programs) which allow one to run the examples in the next section (with
the exception of the first one). The macro parameters, as shown in Tables 1
& 2, map directly to the command structures as given above. Therefore, the
macro parameter descriptions should serve as a description of how the commands
themselves operate.
WinZip(64 bit) Setup [Click Here] To Download
WinZip Pro
19 Full with Serial Key Download From The Below Button
0 comments:
Post a Comment