In a recent note, Tim Hare said:
> Date: Wed, 31 Jan 2007 09:49:31 -0500
>
> IBM's Unix Tools & Toys page (I believe) has GZIP ported for Unix Systems
> Services. I got this to work for me:
>
> cat "//'dataset_name'" | gzip -c > archive_name.gz
>
> Yes that is double quotes around the double slash entity, and single
> quotes around the fully-qualified dataset name, I am sure there may be
> better syntax(?) but it worked.
>
I have found no better syntax.
"cat" is not among the utilities documented as supporting Classic
data sets; use at your own risk. It will likely not produce expected
results for both character and binary files. A form using a supported
utility is:
cp "//'dataset_name'" /dev/fd/1 | gzip -c > archive_name.gz
Additional options to cp can select character or binary mode, etc.
> So, if your tape data is cataloged, and you have mount authority you might
> be able to issue a command like that for your tapes, sit back, and wait.
>
In an earlier submission to this thread I suggested using IEBGENER
instead of cat or cp. I formed the IEBGENER habit before Classic
data set support in cp was announced; it still retains the value
of supporting uncatalogued data sets and concatenations. You'd
need to write a wrapper (I use Rexx) to connect IEBGENER to gzip.
Then you might have the added value or connecting gzip directly to
FTP with no need for a temporary archive-name.gx.
-- gil
--
StorageTek
INFORMATION made POWERFUL
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html