Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@yrl.co.uk (John Laird)
Subject: Re: VMS FORTRAN LUN to channel mapping
Date: 1998/12/21	[thread overview]
Message-ID: <+VIf5Vgj43A$@yrl.co.uk> (raw)
In-Reply-To: 75lqh3$fjl@usenet.pa.dec.com

In article <75lqh3$fjl@usenet.pa.dec.com>, "Steve Lionel" <Steve.Lionel@digital.com> writes:
> <miim@cvfn.org> 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



  reply	other threads:[~1998-12-21  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-18  5:00 Q: VMS FORTRAN LUN to channel mapping miim
1998-12-21  5:00 ` Steve Lionel
1998-12-21  5:00   ` John Laird [this message]
1998-12-21  5:00     ` Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox