From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 3717dac89a,a975f64b947c122 X-Google-Attributes: gid3717dac89a,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: moroney@world.std.spaamtrap.com (Michael Moroney) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: RMS internals? Date: Sun, 9 Aug 2009 17:21:04 +0000 (UTC) Organization: The World : www.TheWorld.com : Since 1989 Message-ID: References: <4a7c4310$1@flight> <4a7dbb58$0$295$14726298@news.sunsite.dk> <4a7dc34a$0$299$14726298@news.sunsite.dk> <0036d9be$0$5027$c3e8da3@news.astraweb.com> <0037589e$0$28455$c3e8da3@news.astraweb.com> NNTP-Posting-Host: shell01.theworld.com X-Trace: pcls4.std.com 1249838464 32568 192.74.137.71 (9 Aug 2009 17:21:04 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 9 Aug 2009 17:21:04 +0000 (UTC) User-Agent: nn/6.6.5 Xref: g2news2.google.com comp.sys.dec:1269 comp.os.vms:20637 Howard S Shubs writes: >In article <0037589e$0$28455$c3e8da3@news.astraweb.com>, > JF Mezei wrote: >> If your client trasnfered in binary mode, you would have raw data with >> CR-LFs terminating records. (or whatever line termination sequence >> windows uses). It would be easier to parse since there would be no RMS >> interpretation of the data. >> >> Binary/image mode usually results in a file created on VMS with fixed >> length 512 byte records (aka: 1 record per block) and no record >> attributes. So when you read the data, you get the data uninterpreted by >> RMS. >Yes, that's why I asked them to get me a file transferred in binary >mode. I wanted to see what it'd look like to me. Fixed length 512 byte >"records" aside, I'm not sure I want to play the "what terminator are we >looking for today" game. Coming from Windows, that's a pretty easy >game, I'll grant you, but I want to keep this as general as I can. I have to deal with similar problems once in a while. FTP in ASCII mode will do some interpretation as you have mentioned. If there is something that looks like a record terminator in the middle of a record, it'll split the records in two, as well as doing things like -> in stmlf output files. If you can guarantee that there is nothing that looks like a record terminator in the middle of a record, you'll be OK except if a new version of TCP/IP software causes a change in the behavior you saw (records split into one the max size the second with the remainder) you'll be OK. If you transfer it in binary, you'll get the bits exactly as they exist on the remote end although the file format won't usually be correct (VMS->VMS passes extra info and will recreate the file with proper RMS attributes) so you won't get fooled by a stray in the middle of a record.