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 Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!howard From: Howard S Shubs Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: RMS internals? Date: Tue, 11 Aug 2009 11:09:49 -0400 Organization: = 'INDEXED' Message-ID: References: <4a7c4310$1@flight> <0076b30e$0$7155$c3e8da3@news.astraweb.com> <1e27ffb3-e228-450c-aead-22d23950f110@d23g2000vbm.googlegroups.com> NNTP-Posting-Host: p24d1bfbfff00000033bdc67608a75a2be93789b45bc15981.newsdawg.com Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b3 (PPC Mac OS X) X-Face: "S"r{U%bs].&Ud}Pc~~~0a]M:t5l>>EN\1Faw10M9NK1Xq59wo7-"s0S+[{etQorO /Nf-Ci"i9v'MT!R8)J]N[4|2&x1r^Iq&{SB"6dknr0=+6UFb.>+{zMn_1=rw&/V+"d@* ZS5\LoW_ Xref: g2news2.google.com comp.sys.dec:1308 comp.os.vms:20722 In article <1e27ffb3-e228-450c-aead-22d23950f110@d23g2000vbm.googlegroups.com>, "Hein, Nashua NH" wrote: > On Aug 10, 10:11�am, Howard S Shubs wrote: > > In article , > > �koeh...@eisner.nospam.encompasserve.org (Bob Koehler) wrote: > : > > > � �Of course, the quick fix in this case is "set file/attributes", or > > > � �maybe just changing the realvent FAB or RAB fields after doing an > > > � �$OPEN. �But then you have to know what was done wrong by the user. > : > > You're working on an incorrect assumption. �I suggest you read the thread. > > Not so quick Howard. Bob's suggestion has merit. I was keying on the "was done wrong by the user", which he seems to have understood from his reply, thankfully. > Yeah you can readily read through the file with $READ (or $QIO). > But are you going to add multi-buffering, read-ahead and such? > If you change the file to 'undefined', or fixed-512 or such, then you > can use RMS $GET and have RMS do the multi buffering ( RAB$V_RAH ) and > AST /WAIT support and such. I'm not sure what you're getting at. I'm just looking at a simple situation of "read it, give the data to the caller". I'm using $READ and $OPEN (and $CLOSE) so I don't have to open the file by hand, which would require me to play with ODS-2 myself, I expect. Disk $QIOs would be new to me, as well. Might be interesting, but I prefer to do something more practical (read: maintainable) for my client with this situation. > Using SYS$MODIFY you can do that on the fly, after the open. > You could even start out with regular gets, in case it is a regular > file, and switch to undefined and your private cut & paste segments > algorithms if and when you determine that is needed ($GET error). I'm not seeing $MODIFY in either the System Services Reference or the RMS reference. What is it, please? > Admittedly the RMS record-io buffers will be limited to 127 blocks, > so you can do bigger=better with SYS$READ and a RAB64 or QIO I'm reading up to 512 blocks at a time, or 3*recordsize rounded up to the next block size, whichever is bigger. Since the record involved isn't THAT big, 512 blocks at a time is what's actually happening. A 256KB read is fairly modest, I figure. -- Don't bother with piddly crap like "gun control". Life is 100% fatal. Ban it.