<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SCP/SFTP with binary mode in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073012#M30011</link>
    <description>Yes, MultiNet SCP &amp;amp; SFTP convert VMS record oriented files to stream-lf as part of the transfer when doing default binary transfers.  If your file has line feeds in it, it could end up with blank lines.  The conversion can be controlled with the logical MULTINET_SFTP_TRANSLATE_VMS_FILE_TYPES.  See below for how to define the bit mask values for this.&lt;BR /&gt;&lt;BR /&gt;MULTINET_SFTP_TRANSLATE_VMS_FILE_TYPES&lt;BR /&gt;This is a bit mask that determines which VMS file types should be translated when not operating in&lt;BR /&gt;VMS mode.&lt;BR /&gt;â ¢ Bit 0 (1) = FIXED&lt;BR /&gt;â ¢ Bit 1 (2) = VARIABLE&lt;BR /&gt;â ¢ Bit 2 (4) = VFC&lt;BR /&gt;The values are:&lt;BR /&gt;â ¢ 0 (zero) = NONE&lt;BR /&gt;â ¢ 7 = ALL&lt;BR /&gt;Note that this logical affects SCP2 as well as the server, as SCP2 has the server built into it for&lt;BR /&gt;handling local file access. If this logical is not defined, the value 7 will be used.</description>
    <pubDate>Mon, 08 Oct 2007 16:32:54 GMT</pubDate>
    <dc:creator>Richard Whalen</dc:creator>
    <dc:date>2007-10-08T16:32:54Z</dc:date>
    <item>
      <title>SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073009#M30008</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am generating a file with line terminator&lt;CRLF&gt; (Carriage return followed by Line Feed). When I ftp the file from VAX to Unix using SCP/SFTP, one blank line is coming after each record. Looks like the multinet secured ftp is doing some translation to file during ftp process.&lt;BR /&gt;&lt;BR /&gt;Is anybody can help me how can I ftp the file without any problems using SCP/SFTP.&lt;BR /&gt;&lt;BR /&gt;The normal ftp with binary mode is working fine for my files but not secured ftp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chand&lt;/CRLF&gt;</description>
      <pubDate>Mon, 08 Oct 2007 11:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073009#M30008</guid>
      <dc:creator>Chand_1</dc:creator>
      <dc:date>2007-10-08T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073010#M30009</link>
      <description>It could be a bug in SCP/SFTP, or it could be that the file attributes do not match the contents.&lt;BR /&gt;&lt;BR /&gt;Do a DIR/FULL on a sample file, and compare the record attributes with the actual contents.&lt;BR /&gt;($DUMP/BLOC=COUN=1 sample.dat)&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2007 11:53:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073010#M30009</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-08T11:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073011#M30010</link>
      <description>Here is the output of DIR/FULL &amp;amp; DUMP.&lt;BR /&gt;&lt;BR /&gt;Do you see anything wrong with this file?&lt;BR /&gt;&lt;BR /&gt;INVBE84310_4D_A.TXT;1                     File ID:  (15573,131,0)         &lt;BR /&gt;Size:            2/18         Owner:    [ZAINABDINC]&lt;BR /&gt;Created:    3-OCT-2007 09:18:16.06&lt;BR /&gt;Revised:    3-OCT-2007 09:18:16.08 (1)&lt;BR /&gt;Expires:   &lt;NONE specified=""&gt;&lt;BR /&gt;Backup:     3-OCT-2007 22:36:39.86&lt;BR /&gt;Effective: &lt;NONE specified=""&gt;&lt;BR /&gt;Recording: &lt;NONE specified=""&gt;&lt;BR /&gt;File organization:  Sequential&lt;BR /&gt;Shelved state:      Online &lt;BR /&gt;Caching attribute:  Writethrough&lt;BR /&gt;File attributes:    Allocation: 18, Extend: 0, Global buffer count: 0&lt;BR /&gt;                    No version limit&lt;BR /&gt;Record format:      VFC, 2 byte header, maximum 0 bytes, longest 159 bytes&lt;BR /&gt;Record attributes:  Print file carriage control&lt;BR /&gt;RMS attributes:     None&lt;BR /&gt;Journaling enabled: None&lt;BR /&gt;File protection:    System:RWED, Owner:RWED, Group:, World:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dump of file INV on  8-OCT-2007 13:12:15.42&lt;BR /&gt;             BE84310_4D_A.TXT;1&lt;BR /&gt;File ID (15573,131,0)   End of file block 2 / Allocated 18&lt;BR /&gt;&lt;BR /&gt;Virtual block number 1 (00000001), 512 (0200) bytes&lt;BR /&gt;&lt;BR /&gt; 444F4F46 204E4F53 59547C48 8D010042 B...H|TYSON FOOD 000000&lt;BR /&gt; 31303030 307C3138 34363233 337C527C |R|3326481|00001 000010&lt;BR /&gt; 7C207C46 467C5050 7C33357C 527C207C | |R|53|PP|FF| | 000020&lt;BR /&gt; 38343632 33337C7C 20202020 7C597C20  |Y|    ||332648 000030&lt;BR /&gt; 38343632 33337C52 8D01001A 0A0D7C31 1|......R|332648 000040&lt;BR /&gt; 0A0D3537 30313031 7C4F507C 20207C31 1|  |PO|101075.. 000050&lt;BR /&gt; 20207C31 38343632 33337C52 8D010017 ....R|3326481|   000060&lt;BR /&gt; 7C4C8D01 0089000A 0D5A5A5A 7C4D427C |BM|ZZZ.......L| 000070&lt;BR /&gt; 4944204E 4F535954 7C313834 36323333 3326481|TYSON DI 000080&lt;BR /&gt; 45544E45 43204E4F 49545542 49525453 STRIBUTION CENTE 000090&lt;BR /&gt; 4349524C 4F205453 45572032 30347C52 R|402 WEST OLRIC 0000A0&lt;BR /&gt; 35373237 7C52417C 53524547 4F527C48 H|ROGERS|AR|7275 0000B0&lt;BR /&gt; 7C303030 307C3031 39303730 30327C36 6|20070910|0000| 0000C0&lt;BR /&gt; 55507C30 3030307C 30313930 37303032 20070910|0000|PU 0000D0&lt;BR /&gt; 2020207C 207C207C 207C3830 207C317C |1| 08| | | |    0000E0&lt;BR /&gt; 36323333 7C7C7C7C 7C202020 20202020        |||||3326 0000F0&lt;BR /&gt; 36323333 7C528D01 0018000A 0D313834 481.......R|3326 000100&lt;BR /&gt; 0A0D5A5A 5A7C4D42 7C317C20 7C313834 481| |1|BM|ZZZ.. 000110&lt;BR /&gt; 337C317C 35373031 30317C43 8D01006E n...C|101075|1|3 000120&lt;BR /&gt; 43467C39 35373331 30363431 35323830 0825146013759|FC 000130&lt;BR /&gt; 3030307C 54534220 4E4B4320 4C524720  GRL CKN BST|000 000140&lt;BR /&gt; 7C34322E 31303030 307C3635 30303030 000056|00001.24| 000150&lt;BR /&gt; 437C207C 207C3030 2E303034 31303030 0001400.00| | |C 000160&lt;BR /&gt; 35327C34 342E3936 30303030 307C5341 AS|0000069.44|25 000170&lt;BR /&gt; 0A0D3030 2E353230 30303030 7C363431 146|0000025.00.. 000180&lt;BR /&gt; 53557C31 38343632 33337C4C 8D0100A1 Â¡...L|3326481|US 000190&lt;BR /&gt; 53414745 56205341 4C204356 53444620  FDSVC LAS VEGAS 0001A0&lt;BR /&gt; 49565245 53444F4F 46205355 7C4D3320  3M|US FOODSERVI 0001B0&lt;BR /&gt; 38363120 53414745 56205341 4C204543 CE LAS VEGAS 168 0001C0&lt;BR /&gt; 41474556 2053414C 7C454843 20572035 5 W CHE|LAS VEGA 0001D0&lt;BR /&gt; 30373030 327C3431 3139387C 564E7C53 S|NV|89114|20070 0001E0&lt;BR /&gt; 31393037 3030327C 30303030 7C333139 913|0000|2007091 0001F0&lt;BR /&gt;&lt;BR /&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;</description>
      <pubDate>Mon, 08 Oct 2007 13:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073011#M30010</guid>
      <dc:creator>Chand_1</dc:creator>
      <dc:date>2007-10-08T13:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073012#M30011</link>
      <description>Yes, MultiNet SCP &amp;amp; SFTP convert VMS record oriented files to stream-lf as part of the transfer when doing default binary transfers.  If your file has line feeds in it, it could end up with blank lines.  The conversion can be controlled with the logical MULTINET_SFTP_TRANSLATE_VMS_FILE_TYPES.  See below for how to define the bit mask values for this.&lt;BR /&gt;&lt;BR /&gt;MULTINET_SFTP_TRANSLATE_VMS_FILE_TYPES&lt;BR /&gt;This is a bit mask that determines which VMS file types should be translated when not operating in&lt;BR /&gt;VMS mode.&lt;BR /&gt;â ¢ Bit 0 (1) = FIXED&lt;BR /&gt;â ¢ Bit 1 (2) = VARIABLE&lt;BR /&gt;â ¢ Bit 2 (4) = VFC&lt;BR /&gt;The values are:&lt;BR /&gt;â ¢ 0 (zero) = NONE&lt;BR /&gt;â ¢ 7 = ALL&lt;BR /&gt;Note that this logical affects SCP2 as well as the server, as SCP2 has the server built into it for&lt;BR /&gt;handling local file access. If this logical is not defined, the value 7 will be used.</description>
      <pubDate>Mon, 08 Oct 2007 16:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073012#M30011</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2007-10-08T16:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073013#M30012</link>
      <description>Great info. &lt;BR /&gt;Looks like the input file is terribly messed up.&lt;BR /&gt;&lt;BR /&gt;Did you try typing it on OpenVMS?&lt;BR /&gt;It should show extra lines there as well.&lt;BR /&gt;&lt;BR /&gt;You can NOT transfer this file in binary mode. &lt;BR /&gt;That does NOT make any sense at all, and any attempt to do so which appears to work is due to software trying to be 'helpful' when it should not (IMHO).&lt;BR /&gt;&lt;BR /&gt;Look at those bits!&lt;BR /&gt;&lt;BR /&gt;See that "8D010042" in the first line?&lt;BR /&gt;in binary mode they should be transferred (IMHO) but will be meaningless on any target other than OpenVMS.&lt;BR /&gt;&lt;BR /&gt;The 0042 it the binary represention of the record length (50 bytes). The 8D01 is printer formating info telling VMS this is a simple record with a CRLF following it.&lt;BR /&gt;But it also includes a CRLF: The 0A0D in the 5th line: 0A0D7C31.&lt;BR /&gt;&lt;BR /&gt;Want worse news?&lt;BR /&gt;The record at line 0000060 starts with  8D010017, so that's and 'odd' length of 23.&lt;BR /&gt;The result of this is an 00 alignment byte between the last 0A linefeed databyte, and the 0089 record length for the next record in the next line : 0089000A&lt;BR /&gt;&lt;BR /&gt;Is the receiving system really ready to handle this binary?&lt;BR /&gt;&lt;BR /&gt;So.... do you really want binary transfer, or are we dealig with straight ascii after all?&lt;BR /&gt;&lt;BR /&gt;Please try again WITHOUT adding the CRLF to the records and ASCII mode. &lt;BR /&gt;&lt;BR /&gt;You may want to just create STREAM_LF or STREAM (CRLF) files on VMS. &lt;BR /&gt;&lt;BR /&gt;KISS!&lt;BR /&gt;&lt;BR /&gt;Just use&lt;BR /&gt;&lt;BR /&gt;$CREATE/FDL=SYS$INPUT transfer.dat&lt;BR /&gt;RECORD; FORMAT STREAM_LF&lt;BR /&gt;$OPEN/APPEND dat transfer.dat&lt;BR /&gt;$LOOP:&lt;BR /&gt;:&lt;BR /&gt;... blah&lt;BR /&gt;:&lt;BR /&gt;$WRITE/SYMB dat record&lt;BR /&gt;$GOTO LOOP&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2007 18:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073013#M30012</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-08T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073014#M30013</link>
      <description>Looks like the below logic should resolve the problem. I am still testing and I will let you know the results ASAP.&lt;BR /&gt;&lt;BR /&gt;$CREATE/FDL=SYS$INPUT transfer.dat&lt;BR /&gt;RECORD; FORMAT STREAM_LF&lt;BR /&gt;$OPEN/APPEND dat transfer.dat&lt;BR /&gt;$LOOP:&lt;BR /&gt;:&lt;BR /&gt;... blah&lt;BR /&gt;:&lt;BR /&gt;$WRITE/SYMB dat record&lt;BR /&gt;$GOTO LOOP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2007 10:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073014#M30013</guid>
      <dc:creator>Chand_1</dc:creator>
      <dc:date>2007-10-09T10:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073015#M30014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That logic works fine for me.&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chand</description>
      <pubDate>Fri, 12 Oct 2007 13:39:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073015#M30014</guid>
      <dc:creator>Chand_1</dc:creator>
      <dc:date>2007-10-12T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: SCP/SFTP with binary mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073016#M30015</link>
      <description>I have got the solution for the problem.&lt;BR /&gt;&lt;BR /&gt;Thank you very much</description>
      <pubDate>Fri, 12 Oct 2007 13:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-sftp-with-binary-mode/m-p/5073016#M30015</guid>
      <dc:creator>Chand_1</dc:creator>
      <dc:date>2007-10-12T13:42:32Z</dc:date>
    </item>
  </channel>
</rss>

