- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Open VMS FTP of Indexed file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:16 AM
04-01-2011 05:16 AM
Open VMS FTP of Indexed file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:27 AM
04-01-2011 05:27 AM
Re: Open VMS FTP of Indexed file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:28 AM
04-01-2011 05:28 AM
Re: Open VMS FTP of Indexed file
$ COPY /FTP /BINARY -
indexedfile.dat -
ftp.example.com"user password"::targetfilename.dat
If the remote domain is not VMS, then it's commonplace to have the metadata corrupted by the intervening systems, and the usual palliate is to protect the file using the zip tool with the "-V" switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:31 AM
04-01-2011 05:31 AM
Re: Open VMS FTP of Indexed file
Put another way, please don't bother using BACKUP within a zip archive.
That is unnecessary (with the use of the zip "-V" switch), and BACKUP largely serves to makes zip work harder with its compression, and the nesting here also means that common tools on VMS and other platforms can't be used to pull the files out of the zip archive (without a whole lot more work), and it means that common tools can't index the contents of the archive, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:50 AM
04-01-2011 05:50 AM
Re: Open VMS FTP of Indexed file
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:52 AM
04-01-2011 05:52 AM
Re: Open VMS FTP of Indexed file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 06:34 AM
04-01-2011 06:34 AM
Re: Open VMS FTP of Indexed file
it's that easy:
$ ZIP "-V" zipfile filename-of-indexed-file
This wil create a zipfile.ZIP file.
Then transfer the zipfile.zip file via FTP in binary mode.
$ UNZIP "-V" zipfile
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 06:53 AM
04-01-2011 06:53 AM
Re: Open VMS FTP of Indexed file
http://labs.hoffmanlabs.com/node/575
Pointers to tools, common options, etc.
At its simplest, this is the command that preserves the metadata:
zip "-V" archive.zip indexedfile.dat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 07:29 AM
04-01-2011 07:29 AM
Re: Open VMS FTP of Indexed file
> for the zip/unzip of the Indexed file?
zip -h
unzip -h
"zip -V" pretty well covers the fancy part.
> $ ZIP "-V" zipfile filename-of-indexed-file
Ok.
> $ UNZIP "-V" zipfile
unzip -h
Someone should read the UnZip documentation.
"-V" does not mean the same thing for UnZip
as it does for Zip. If "zip -V" is used to
create an archive on a VMS system, then no
special UnZip option should be needed when
extracting files from that archive on a VMS
system. (Prove me wrong, if you can.)
And. of course, if your (unspecified) VMS
version is reasonably recent, and your Parse
Style is Extended, then you don't need all
those quotation marks, either. (But they are
always safe to use.)
Standard caution:
Zip 3.0 and UnZip 6.0 are the current
released versions. I'd avoid anything older.
(Even those still have some relatively
obscure bugs, which should be fixed in the
current or next beta kits.)
http://www.info-zip.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 07:33 AM
04-01-2011 07:33 AM
Re: Open VMS FTP of Indexed file
RTFH:
(Must quote upper-case options, like "-V", unless SET PROC/PARSE=EXTEND)
However, in the larger context of the question you may want to consider an other alternative.
You could convert the file to sequential first, and zip that up along with a (fresh) FDL file. Convert back to indeded on the other side.
Why?
- This only zips up real data bytes and not indxed file overhead such as indexes and record overhead.
- The intermediate file may be useful on other platforms notably if the data is text.
Why not?
- More steps
- Binary contents becomes tricky (Hmmm, I may have to Email SMS on an issue I had trying)
- Intermediate file may 'explode' if the RMS compression was very effective.
Hope this helps some.
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2011 04:20 AM
04-11-2011 04:20 AM
Re: Open VMS FTP of Indexed file
$ ZIP /VMS MYZIP MYZIP.FILE
No need to mess with double quotes or parse styles.