[Info-vax] Example of random access by record number on an RMS fixed record size, relative organization file?
gah4
gah4 at u.washington.edu
Wed Sep 20 16:11:16 EDT 2023
On Wednesday, September 20, 2023 at 5:22:55 AM UTC-7, Simon Clubley wrote:
(snip)
> >> On Tuesday, September 19, 2023 at 5:46:29?PM UTC-7, Arne Vajhøj wrote:
> >>> open(unit=1,file='rel.dat',status='new',form='formatted',
> >>> + organization='relative',recl=512,recordtype='variable',
> >>> + access='direct')
(then I wrote)
> >> OP asked about fixed record size, and traditionally that is
> >> the way it was done. I haven't followed that detail of later
> >> Fortran standards. They have to, at least, allocate to the
> >> maximum size.
(snip)
> It allocates 512 bytes for the _data_ within that cell. It then allocates
> a bit more per record to store the length of each record. Look at the
> example Hein posted.
OK, I finally got back to checking the Fortran standard.
It seems that variable length direct access hasn't made its
way to the Fortran standard yet. Implementations are allowed to
have extensions, so it seems that VMS has this one.
More information about the Info-vax
mailing list