- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Transferring files from OpenVMS to Windows usi...
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
тАО02-10-2009 09:30 AM
тАО02-10-2009 09:30 AM
The file created is a VFC file, and when transferred to the windows box it looks like a binary file in notepad. If I convert the file to stream_lf it looks fine except it is one long record instead of multiple records on openvms.
Can this be done or is there someother way to securely transfer the file?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 09:52 AM
тАО02-10-2009 09:52 AM
Re: Transferring files from OpenVMS to Windows using smbclient
As for transfer of files, use of ftp (often via COPY /FTP) or using sftp would be more common choices for file transfer and secure file transfer, respectively. Windows clients have an ftp client but you'd need to add an ftp server if you want to push files. Windows Server does include an ftp server. Windows needs an add-on ssh tool, when last I looked. (I'm using platforms that tend to have this stuff integrated in the distro, so I'm not having to roll my own solution quite as often anymore.)
As for the creation of a compatible file here (and the direct path following your current course), create the file using CREATE /FDL or such (and particularly create the file as stream_lf sequential file) and then use OPEN and WRITE to write the data. It's the default DCL file creation path you're likely using that tends to pick sequential VFC, and it's VFC that stomps sharing on other platforms. Or create an empty Stream LF file somewhere in a local file cache or scratch area, and then replicate it as needed, and OPEN and WRITE to that.
(As for VFC, I won't get into the "fun" that can be UTF-8 and UTF-16 and character encoding.)
As for alternatives, there's always using the web and some DCL CGI and such. Other options include Mercurial and Subversion and rsync and NFS and such, too. There are about three-quarters of a gazillion different ways to do this. Using SMB as a file transfer tool isn't usually my first choice, however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 01:11 PM
тАО02-10-2009 01:11 PM
Re: Transferring files from OpenVMS to Windows using smbclient
From DCL the sequence:
$ OPEN/WRITE f filespec
$ WRITE f
will create a VFC file - that's the default and there's no global way to change it. If you want to create a file with different attributes use (for example, stream_lf):
$ CREATE/FDL="RECORD;FORMAT STREAM_LF" filespec
$ OPEN/APPEND f filespec
$ WRITE f
The FDL string may contain whatever attributes you like. Take a file in the format you want, do ANALYZE/RMS/FDL and compare it against the same for a file created with OPEN/WRITE to see what's different.
For versions of OpenVMS prior to V8, the /FDL="fdl string" qualifier for CREATE and CONVERT doesn't work. You need to give it an FDL file, or use inline:
$ CREATE/FDL=SYS$INPUT filespec
RECORD
FORMAT STREAM_LF
(maybe the DCL OPEN command should be given a /FDL qualifier?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 01:28 PM
тАО02-10-2009 01:28 PM
Re: Transferring files from OpenVMS to Windows using smbclient
> given a /FDL qualifier?)
I was just doing one of these CREATE /FDL,
OPEN /APPEND things recently, when I had the
same thought. Although, with backward
compatibility in mind, I might never dare to
use it, still it does seem like a nice
feature. Some thought required, of course,
like what to do with an existing file, ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 01:48 PM
тАО02-10-2009 01:48 PM
Re: Transferring files from OpenVMS to Windows using smbclient
I then created my file normally:
$ open/write test_file test.txt
$ write test_file record
$ close test_file
$ convert/fdl=FDL_FILE.FDL test.txt test.txt
I was then able to transfer the file, and when I looked at the file in WordPad (with "No Wrap"), I was able to see each record one after the other.
Thank you all for all your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 07:25 AM
тАО02-11-2009 07:25 AM