- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: VMS save sets and FTP
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
Discussions
Discussions
Forums
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
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
тАО08-14-2003 08:19 AM
тАО08-14-2003 08:19 AM
Original: Fixed length 32256 byte records
FTP's: Fixed length 512 byte records
Id there any way to keep the record format from being altered?
Regards,
Ed Day
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2003 08:50 AM
тАО08-14-2003 08:50 AM
SolutionThe easiest way in any case is to do a zip -"V" to the save set before transfer and have your customer unzip it on the other end. This preserves the VMS file attributes inside the zip archive. It's possible to create a self-extracting zip if the customer can't be relied on to have unzip handy.
As long as the save set record lengths are a multiple of 512 (and you can control this on the backup command, going as low as 2048 I think), then you may be able to twiddle the file attributes on the receiving end:
$ set file/attr=lrl=32256
There are probably a dozen other ways to skin this cat but those should get you started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2003 10:56 AM
тАО08-14-2003 10:56 AM
Re: VMS save sets and FTP
Following is a modified version of a command file that was on one of the freeware disks. It will take the saveset as the P1 paramater, look at the first record to find the block size and set the file accordingly.
(note: the file wrapped when I cut/pasted it)
$! RESET_BACKUP_SAVESET_ATTRIBUTES.COM
$!
$! P1 is the specification of the BACKUP saveset
$!
$! This procedure resets the record format and record
$! length attributes of a BACKUP saveset -- savesets
$! can get "broken" during certain sorts of file
$! transfers -- such as FTP. This procedure reads the
$! (undocumented) saveset record attributes directly
$! out of the target file.
$!
$! First render the saveset readable, and implicitly
$! check that the file exists.
$!
$! The origin of this utility is from the [000tools] freeware directory
$! of VMS software.
$!
$! History:
$! 06/27/03 - sjb - Added check for P1
$!
$!
$ If "''p1'" .eqs. ""
$ then
$ write sys$output "A saveset filename is required as the P1 Paramater"
$ exit
$ endif
$!
$!
$ Set File -
/Attributes=(RFM:FIX,MRS:512,LRL=512,ORG=SEQ,RAT=NONE) -
'p1'
$
$ Open/Error=whoops/Read BckSaveset 'p1'
$ Read/Error=whoops/End=whoops BckSaveset Record
$ Close/Nolog BckSaveset
$
$! Find the blocksize from within the record...
$
$ BlockSize = 0
$ BBH_L_BLOCKSIZE = %x28*8
$ BlockSize = F$CVUI(BBH_L_BLOCKSIZE, 32, Record)
$ If BlockSize .lt. 2048 .or. BlockSize .gt. 65535
$ Then
$ Write sys$output "Unexpected block size"
$ Goto whoops
$ Else
$ Set File /Attributes=(RFM:FIX,LRL='BlockSize', -
MRS='BlockSize',RAT=none) -
'p1'
$ Write sys$output "''p1' has been corrected"
$ endif
$ exit
$WHOOPS:
$ Write sys$output "Error"
$ exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2003 05:44 AM
тАО08-15-2003 05:44 AM
Re: VMS save sets and FTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2003 09:28 AM
тАО08-15-2003 09:28 AM
Re: VMS save sets and FTP
Personally, I've had excellent luck with Info-Zip over the years (http://www.info-zip.org/pub/infozip/). The price is right (freeware), and the command is identical regardless of what platform its run on. I *think* the latest versions are on the VMS Freeware CDs.
As said above, use the VMS "-V" option....
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2003 10:00 AM
тАО08-15-2003 10:00 AM
Re: VMS save sets and FTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2003 06:42 PM
тАО08-16-2003 06:42 PM
Re: VMS save sets and FTP
the following command should rescue the
saveset:
SET FILE/ATTRIB=(lrl:32256,mrs:32256,rfm:fix)
This does assume you have a version of VMS that supports set file :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2003 07:09 AM
тАО08-18-2003 07:09 AM
Re: VMS save sets and FTP
I did try the zip utility program but could not get this to work. This might be a better long term solution, so I am still interested in it. I got the following when I tried to zip:
$ zip -V asn1cvms.zip spe51$dka0:[asn1c]
zip warning: name not matched: spe51$dka0:[asn1c]
zip error: Nothing to do! (SPE51$DKA0:[000000]ASN1CVMS.ZIP;)
Anyone have any ideas on this?
Regards,
Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2003 09:42 AM
тАО08-18-2003 09:42 AM
Re: VMS save sets and FTP
$ zip -"Vr" foo.zip [.foo]*.*
The double quotes are necessary unless you are on a very recent version of VMS and have taken steps to preserve case in command line arguments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2003 11:22 AM
тАО08-18-2003 11:22 AM