- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: newbie having issues with sftp to VMS 8.3
Operating System - OpenVMS
1753784
Members
6918
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-11-2010 06:13 AM
тАО05-11-2010 06:13 AM
Re: newbie having issues with sftp to VMS 8.3
> [...] an HP-UX system [...]
Note that using only a VMS system, you may
not see the same problem. The debug info
shows stuff like:
Ssh2SftpServer/SSHFILEXFERS.C:3484: extended attribute name: rms-rfmt-data@openvms.hp.com alq=0, lrl=0, mrs=0, rfm=var, rat=cr
and the result is another rfm=var file.
Coming from a non-VMS system (like, say,
HP-UX, or even Windows), the TCPIP SFTP
server will (apparently) do STREAM_LF-like
I/O, but that doesn't work well when the file
inherits the non-STREAM_LF attributes of an
existing "Variable length" file (soon to
become ";-1").
Everything's complicated (even without
Microsoft).
Note that using only a VMS system, you may
not see the same problem. The debug info
shows stuff like:
Ssh2SftpServer/SSHFILEXFERS.C:3484: extended attribute name: rms-rfmt-data@openvms.hp.com alq=0, lrl=0, mrs=0, rfm=var, rat=cr
and the result is another rfm=var file.
Coming from a non-VMS system (like, say,
HP-UX, or even Windows), the TCPIP SFTP
server will (apparently) do STREAM_LF-like
I/O, but that doesn't work well when the file
inherits the non-STREAM_LF attributes of an
existing "Variable length" file (soon to
become ";-1").
Everything's complicated (even without
Microsoft).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2010 02:29 PM
тАО05-16-2010 02:29 PM
Re: newbie having issues with sftp to VMS 8.3
O.k., so I did some research and testing and came up with this to go through and convert any file (newest versions only) to STREAM_LF.
The search script that was posted returned any version of the file that was not stream_lf and when I added CONVERT to it, and ran it, it made a new file.
But, because it was searching for any version of the file that was not stream_lf, it would make a new file every time I ran it.
Here is the script:
$! 9 November 2006. SMS.
$! Changes found files to Stream_LF format - 16 May 2010. EQ.
$!
$! Find non-directory files matching P1 which are not
$! Record format: Stream_LF.
$!
$!
$ if (p1 .eqs. "")
$ then
$ p1 = "[...]*.*;*"
$ endif
$!
$ file = f$search(p1)
$ file_old = file
$ file_name = (f$parse(file,,,"NAME")-"^;")
$ file_name_old = file_name
$!
$ loop_top:
$!
$ file = f$search(p1)
$! write sys$output "''FID' ''file'"
$ file_name = (f$parse(file,,,"NAME")-"^;")
$ if (file_name_old .eqs. "") then goto loop_end
$ if (file_name .eqs. file_name_old) then goto loop_top
$!
$ if (.not. f$file_attributes( file_old, "DIRECTORY"))
$ then
$!
$ rfm = f$file_attributes( file_old, "RFM")
$ if (rfm .nes. "STMLF")
$ then
$ write sys$output "''FID' ''file_old'"
$ CONVERT/FDL=STREAM_LF.FDL 'file_name_old' 'file_name_old'
$ endif
$!
$ endif
$ file_old = file
$ file_name_old = file_name
$!
$ goto loop_top
$!
$ loop_end:
$!
And you will also need to make a STREAM_LF.FDL file with this in it:
FILE
ALLOCATION 4
BEST_TRY_CONTIGUOUS yes
EXTENSION 0
ORGANIZATION sequential
RECORD
BLOCK_SPAN yes
FORMAT stream_LF
SIZE 0
The search script that was posted returned any version of the file that was not stream_lf and when I added CONVERT to it, and ran it, it made a new file.
But, because it was searching for any version of the file that was not stream_lf, it would make a new file every time I ran it.
Here is the script:
$! 9 November 2006. SMS.
$! Changes found files to Stream_LF format - 16 May 2010. EQ.
$!
$! Find non-directory files matching P1 which are not
$! Record format: Stream_LF.
$!
$!
$ if (p1 .eqs. "")
$ then
$ p1 = "[...]*.*;*"
$ endif
$!
$ file = f$search(p1)
$ file_old = file
$ file_name = (f$parse(file,,,"NAME")-"^;")
$ file_name_old = file_name
$!
$ loop_top:
$!
$ file = f$search(p1)
$! write sys$output "''FID' ''file'"
$ file_name = (f$parse(file,,,"NAME")-"^;")
$ if (file_name_old .eqs. "") then goto loop_end
$ if (file_name .eqs. file_name_old) then goto loop_top
$!
$ if (.not. f$file_attributes( file_old, "DIRECTORY"))
$ then
$!
$ rfm = f$file_attributes( file_old, "RFM")
$ if (rfm .nes. "STMLF")
$ then
$ write sys$output "''FID' ''file_old'"
$ CONVERT/FDL=STREAM_LF.FDL 'file_name_old' 'file_name_old'
$ endif
$!
$ endif
$ file_old = file
$ file_name_old = file_name
$!
$ goto loop_top
$!
$ loop_end:
$!
And you will also need to make a STREAM_LF.FDL file with this in it:
FILE
ALLOCATION 4
BEST_TRY_CONTIGUOUS yes
EXTENSION 0
ORGANIZATION sequential
RECORD
BLOCK_SPAN yes
FORMAT stream_LF
SIZE 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2010 02:45 PM
тАО05-16-2010 02:45 PM
Re: newbie having issues with sftp to VMS 8.3
Slight bug in the script I posted. This should be fixed to work properly now:
$! 9 November 2006. SMS.
$! Changes found files to Stream_LF format - 16 May 2010. EQ.
$!
$! Find non-directory files matching P1 which are not
$! Record format: Stream_LF.
$!
$!
$ if (p1 .eqs. "")
$ then
$ p1 = "[...]*.*;*"
$ endif
$!
$ file = f$search(p1)
$ file_old = file
$ file_name = f$parse(file,,,"NAME")
$ file_name_old = file_name
$!
$ loop_top:
$!
$ file = f$search(p1)
$! write sys$output "''FID' ''file'"
$ file_name = f$parse(file,,,"NAME")
$ if (file_name_old .eqs. "") then goto loop_end
$ if (file_name .eqs. file_name_old) then goto loop_top
$!
$ if (.not. f$file_attributes( file_old, "DIRECTORY"))
$ then
$!
$ rfm = f$file_attributes( file_old, "RFM")
$ if (rfm .nes. "STMLF")
$ then
$ write sys$output "''FID' ''file_old'"
$ CONVERT/FDL=STREAM_LF.FDL 'file_old' 'file_old'
$ endif
$!
$ endif
$ file_old = file
$ file_name_old = file_name
$!
$ goto loop_top
$!
$ loop_end:
$!
$! 9 November 2006. SMS.
$! Changes found files to Stream_LF format - 16 May 2010. EQ.
$!
$! Find non-directory files matching P1 which are not
$! Record format: Stream_LF.
$!
$!
$ if (p1 .eqs. "")
$ then
$ p1 = "[...]*.*;*"
$ endif
$!
$ file = f$search(p1)
$ file_old = file
$ file_name = f$parse(file,,,"NAME")
$ file_name_old = file_name
$!
$ loop_top:
$!
$ file = f$search(p1)
$! write sys$output "''FID' ''file'"
$ file_name = f$parse(file,,,"NAME")
$ if (file_name_old .eqs. "") then goto loop_end
$ if (file_name .eqs. file_name_old) then goto loop_top
$!
$ if (.not. f$file_attributes( file_old, "DIRECTORY"))
$ then
$!
$ rfm = f$file_attributes( file_old, "RFM")
$ if (rfm .nes. "STMLF")
$ then
$ write sys$output "''FID' ''file_old'"
$ CONVERT/FDL=STREAM_LF.FDL 'file_old' 'file_old'
$ endif
$!
$ endif
$ file_old = file
$ file_name_old = file_name
$!
$ goto loop_top
$!
$ loop_end:
$!
- « Previous
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP