<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>El 15/04/2015, a les 12:33, Johnny Billquist <<a href="mailto:bqt@softjar.se">bqt@softjar.se</a>> va escriure:<br></div><blockquote type="cite"><div><span>On 2015-04-15 06:58, Dave McGuire wrote:</span><br><blockquote type="cite"><span>On 04/14/2015 12:24 PM, Johnny Billquist wrote:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>On 2015-04-14 04:53, Dave McGuire wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>    Hey folks.  I'm moving some text files to an RSX system via DECnet</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>under Linux.  The files on the RSX system are not readable; I get</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>"illegal record size" when trying to type them.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>    Has anyone hit this?  I assume there's a simple solution..</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I have never had any luck at all transferring files from Linux to RSX.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>That said, what do you see if you do a DSP <file> under RSX?</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   Just got back from road trip #1, only have a moment, will get back to</span><br></blockquote><blockquote type="cite"><span>this in the morning.  Here is the DSP output:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>$ dsp forth.mac</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>DU:[10,1]FORTH.MAC;1</span><br></blockquote><blockquote type="cite"><span>                         Size:    139./144.       Created: 15-APR-2015 00:54</span><br></blockquote><blockquote type="cite"><span>                         Owner:   [001,010]       Revised: 15-APR-2015 00:55</span><br></blockquote><blockquote type="cite"><span>                         File ID: (5601,10,0)     Expires: <none_specified></span><br></blockquote><blockquote type="cite"><span>   File protection:      System:RWED, Owner:RWED, Group:RWED, World:R</span><br></blockquote><blockquote type="cite"><span>   File organization:    Sequential</span><br></blockquote><blockquote type="cite"><span>   File attributes:      Allocation=144, Extend=0</span><br></blockquote><blockquote type="cite"><span>   Record format:        Stream, maximum 255 bytes</span><br></blockquote><blockquote type="cite"><span>   Record attributes:    Carriage return</span><br></blockquote><span></span><br><span>Cool. So the first, and most obvious, problem, is that the file is indeed in stream format. So no ordinary RSX tool will touch it with a five foot pole...</span><br><span></span><br><span>Had you been pulling it from Linux to RSX, and initiated to transfer from the RSX side, you can tell NFT exactly what format you want for the file on the local side, when the remote side is a stream format file. Not sure Linux can do that if you do the transfer from the Linux side.</span><br></div></blockquote><div><br></div>The dncopy command takes a -r switch where you can specify the remote format:<div><br></div><div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; vertical-align: baseline;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">
       <u>-r</u> <u>{fix|var|vfc|stm}</u>
              Sets  the  record  format  for files copied to a VMS system. The
              default is <b>stm.</b>   In  fact  the  default  is  STREAMLF  as  this
              corresponds to the format of files on Unix systems and so is the
              least likely to result in file corruption.  If you are sending a
              pure  text file then <b>var</b> or <b>vfc</b> may be more appropriate for your
              application.  <b>fix</b> may be useful for block-structures  files  and
              data files.</span></font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; vertical-align: baseline;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><br></span></font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; vertical-align: baseline;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">That is the verbatim text of the man page. It refers just to VMS and I'm not sure about the differences between the RSX and VMS versions of RMS, but it looks like it could fix the problem.</span></font></pre><div><br></div><div><br></div><br><blockquote type="cite"><div><span>My next suggestion is to read up on RMSCNV, on how to convert the file. I can never remember exactly how to use it, so I have to read every time I want to, but it can convert the file to another format for you.</span><br><span></span><br><span>Of course, it might also be that the actual file contents are "funny", but I think not.</span><br><span></span><br><span>    Johnny</span><br></div></blockquote></div></body></html>