Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP -- uploaded files change attributes from fix length to Stream_LF

M. Ajmal Minhas
Occasional Contributor

SFTP -- uploaded files change attributes from fix length to Stream_LF

Environment: TCPIP v5.4 ECO 4 on OpenVMS 7.3-2.
When we upload any file having fix length 512 bytes record to this OpenVMS system using SFTP; it changes file attributes to Stream_LF.
Whereas uploading with FTP doesn't change file attributes.
How can we keep file in original format i.e. Fixed length using SFTP.

Thanks
MINHAS
3 REPLIES
Joseph Huber_1
Honored Contributor

Re: SFTP -- uploaded files change attributes from fix length to Stream_LF

Well to be sarcastic, with TCPIP services for VMS, VMS becomes more and more Unix-like: everything is just a stream of bytes :-)
SFTP has no ascii/binary command, so it simply takes the stream of bytes and puts it to a stream of bytes.

Do You have problems with the Stream_LF format ?
If just for estetic reasons, change it with

$ SET FILE /ATTRIB=(RFM:FIX,LRL:512) file
http://www.mpp.mpg.de/~huber
Ian Miller.
Honored Contributor

Re: SFTP -- uploaded files change attributes from fix length to Stream_LF

does the -p option help?
____________________
Purely Personal Opinion
Galen Tackett
Valued Contributor

Re: SFTP -- uploaded files change attributes from fix length to Stream_LF

Ian,

The -p option didn't help me any on TCP/IP Services V5.5 on my I64 box.

I found it pretty much impossible to transfer any kind of file other than stream_lf, without having to manually adjust the VMS file attributes afterward on the receiving side.

Just another data point for you...


Galen