From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8470bf03d8d250d3 X-Google-Attributes: gid1164f8,public From: john@yrl.co.uk (John Laird) Subject: Re: VMS FORTRAN LUN to channel mapping Date: 1998/12/21 Message-ID: <+VIf5Vgj43A$@yrl.co.uk>#1/1 X-Deja-AN: 424553903 X-NNTP-Posting-Host: mailgate.yrl.co.uk:194.159.108.1 References: <75eou2$qif$1@nnrp1.dejanews.com> <75lqh3$fjl@usenet.pa.dec.com> X-Trace: news.demon.co.uk 914261133 nnrp-10:27873 NO-IDENT mailgate.yrl.co.uk:194.159.108.1 Organization: Yezerski Roper Ltd Newsgroups: comp.sys.dec X-Complaints-To: abuse@demon.net In article <75lqh3$fjl@usenet.pa.dec.com>, "Steve Lionel" writes: > wrote in message news:75eou2$qif$1@nnrp1.dejanews.com... > >>I have quite a pile of RSX FORTRAN undergoing conversion to >>Alpha OpenVMS. Much of it is subroutines which accept a >>Fortran LUN as a parameter, then do a QIO to the associated >>LUN. >> >>This worked great under RSX, but under VMS an HLL LUN is not >>the same thing as a channel, and QIOs are done to channels. >> >>Does anyone know how to peek into the Fortran OTS LUN to >>channel mapping mechanism to get this information? > > You couldn't use it even if you got it - the channel is owned by RMS in exec > mode. >(example snipped) > > Now... do you REALLY need to do this? What kind of "file" are you doing > QIOs to and what kind of QIOs? I had to resort to doing this myself, back on a Pro/350 under P/OS (essentially RSX11M+, as near as makes no difference). If I recall correctly, either the overhead in the Fortran I/O library was too high, or there was no buffering. The files were simple fixed-length record "direct access" files, accessed directly. I implemented a simple 1-block buffer and used $QIOs for every read/write operation barring those writes that extended the file. Program performance improved dramatically. -- John Laird (john@yrl.co.uk) "I have discovered a truly elegant sig, Yezerski Roper Ltd sadly there is no room here to show it." http://www.yrl.co.uk