On Saturday 20 June 2009, McKown, John wrote:
>
> You could also enclose in " marks.
>
> /u/userid/zip31b: >zip -av -1 /tmp/BIG_FILE.zip "//'userid.BIG.FILE'"
>
> or
>
> "//'userid.BIG.PDS(MEMBER)'"

    Sadly, it's all a dead end, because it looks like zip can't handle 
this kind of filename:

> /u/myuserid/tmp/> zip zjunk.zip //test.outlist
>         zip warning: name not matched: //test.outlist
> zip error: Nothing to do! (zjunk.zip)

    It looks like all that "dots" stuff in the filename handling code 
needs another wrinkle added for full MVS + USS support.


    And the idea of piping out of and into tar doesn't work, because tar 
(IBM's, at least) won't handle the filenames either.

> /u/myuserid/tmp/tmp/> tar cf - //etc.ipnodes >ipnodes2
> tar: //etc.ipnodes: EDC5129I No such file or directory.


    What *will* work, though, is something like this:

> /u/myuserid/tmp/> cat //etc.ipnodes | zip31 mvsjunk.zip -
>   adding: - (deflated 49%)
> /u/myuserid/tmp/> unzip60 -l mvsjunk.zip
> Archive:  mvsjunk.zip
>   Length      Date    Time    Name
> ---------  ---------- -----   ----
>      1263  06-20-2009 15:45   -
> ---------                     -------
>      1263                     1 file

followed by something like

> /u/myuserid/tmp/> unzip60 -p mvsjunk.zip > ipnodes

or

> /u/myuserid/tmp/tmp/> unzip60 -p mvsjunk.zip > //test.ipnodes

to unpack it.

    Not elegant, and you're limited to one (unnamed) file per archive. 
You really don't have an archiver, just a compressor, like gzip or 
bzip2. But it's usable for this limited purpose.


    I haven't tried doing this with a "large" file - I don't have the 
large file stuff stable yet  --  and that was the whole purpose of this 
exercise.


Cheers,
Bob

----
Bob Woodside
Woodsway Consulting, Inc.
[email protected]
http://www.woodsway.com

----------------------------------------------------------------------
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

Reply via email to