Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* OSF/1 Fortran: can't write long records
@ 1995-01-04  1:11 Frederick Jones
  1995-01-04  7:22 ` Per Steinar Iversen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frederick Jones @ 1995-01-04  1:11 UTC (permalink / raw)


The following code doesn't work when compiled with DEC Fortran 
(X3.4-529) on an Alpha (OSF/1 V3.0 (Rev. 347)):

      character*16384 buff
      open(unit=2,file='test.out',status='new',recl=16384,
     #  recordtype='fixed')
      write(2,1000)buff
 1000 format(A)
      end

The error is:

forrtl: severe: output statement overflows record, unit 2, file
/usr1/users/fwj/test.out

If you reduce the data and record lengths to 8190 or below it works o.k.

Does anyone know of a fix for this?

                        Thanks
                        Fred Jones
                        fwj@triumf.ca


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 Fortran: can't write long records
  1995-01-04  1:11 OSF/1 Fortran: can't write long records Frederick Jones
@ 1995-01-04  7:22 ` Per Steinar Iversen
  1995-01-04  8:36 ` Jerry Leslie
  1995-01-04 16:07 ` Steve Lionel
  2 siblings, 0 replies; 4+ messages in thread
From: Per Steinar Iversen @ 1995-01-04  7:22 UTC (permalink / raw)



In article <3JAN199517112926@reg.triumf.ca>, fwj@reg.triumf.ca (Frederick Jones) writes:
>The following code doesn't work when compiled with DEC Fortran 
>(X3.4-529) on an Alpha (OSF/1 V3.0 (Rev. 347)):
>
>      character*16384 buff
>      open(unit=2,file='test.out',status='new',recl=16384,
>     #  recordtype='fixed')
>      write(2,1000)buff
> 1000 format(A)
>      end

It does not work with DEC Fortran V3.5-576 either, but a small change to the
code makes it run - just increase the RECL with 4 bytes to 16388....

These extra 4 bytes are not needed with DEC Fortran V6.2-108 on VMS, or
DEC Fortran V3.2-164 on Ultrix, so it is probably a bug.

-psi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 Fortran: can't write long records
  1995-01-04  1:11 OSF/1 Fortran: can't write long records Frederick Jones
  1995-01-04  7:22 ` Per Steinar Iversen
@ 1995-01-04  8:36 ` Jerry Leslie
  1995-01-04 16:07 ` Steve Lionel
  2 siblings, 0 replies; 4+ messages in thread
From: Jerry Leslie @ 1995-01-04  8:36 UTC (permalink / raw)


Frederick Jones (fwj@reg.triumf.ca) wrote:
: The following code doesn't work when compiled with DEC Fortran 
: (X3.4-529) on an Alpha (OSF/1 V3.0 (Rev. 347)):

:       character*16384 buff
:       open(unit=2,file='test.out',status='new',recl=16384,
:      #  recordtype='fixed')
:       write(2,1000)buff
:  1000 format(A)
:       end

: The error is:

: forrtl: severe: output statement overflows record, unit 2, file
: /usr1/users/fwj/test.out

: If you reduce the data and record lengths to 8190 or below it works o.k.

: Does anyone know of a fix for this?

For what it's worth, it works on OpenVMS AXP V6.1, DEC FORTRAN v6.2-508,
so perhaps there's a newer FORTRAN for OSF/1 ?

Steve Lionel should be posting a definitive answer in a few hours.

--Jerry,

 Gerald (Jerry) R. Leslie   jleslie@dmccorp.com    gleslie@isvsrv.enet.dec.com
 Dynamic Matrix Control Corporation                (my opinions are my own)
==============================================================================
$ fortran/lis jones
$ link/map jones
$ run jones
$ search/nohigh jones.lis fortran
JONES$MAIN                                                  4-JAN-1995 02:2
8:23    DEC Fortran V6.2-508                Page   1
JONES$MAIN                                                  4-JAN-1995 02:2
8:23    DEC Fortran V6.2-508                Page   2
COMPILER: DEC Fortran V6.2-508-274F

$ dir/full test.out

Directory SYS$SYSROOT:[SYSMGR]

TEST.OUT;1                    File ID:  (2480,1,0)
Size:           32/32         Owner:    [SYSTEM]
Created:    4-JAN-1995 02:28:45.62
Revised:    4-JAN-1995 02:28:45.72 (1)
Expires:   <None specified>
Backup:    <No backup recorded>
Effective: <None specified>
Recording: <None specified>
File organization:  Sequential
Shelved state:      Online
File attributes:    Allocation: 32, Extend: 0, Global buffer count: 0
                    No version limit
Record format:      Fixed length 16384 byte records
Record attributes:  Fortran carriage control
RMS attributes:     None
Journaling enabled: None
File protection:    System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List:  None

Total of 1 file, 32/32 blocks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF/1 Fortran: can't write long records
  1995-01-04  1:11 OSF/1 Fortran: can't write long records Frederick Jones
  1995-01-04  7:22 ` Per Steinar Iversen
  1995-01-04  8:36 ` Jerry Leslie
@ 1995-01-04 16:07 ` Steve Lionel
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Lionel @ 1995-01-04 16:07 UTC (permalink / raw)



In article <3JAN199517112926@reg.triumf.ca>, fwj@reg.triumf.ca (Frederick Jones)
 writes:
|>The following code doesn't work when compiled with DEC Fortran 
|>(X3.4-529) on an Alpha (OSF/1 V3.0 (Rev. 347)):
|>
|>      character*16384 buff
|>      open(unit=2,file='test.out',status='new',recl=16384,
|>     #  recordtype='fixed')
|>      write(2,1000)buff
|> 1000 format(A)
|>      end
|>
|>The error is:
|>
|>forrtl: severe: output statement overflows record, unit 2, file
|>/usr1/users/fwj/test.out

When I try this I find that if I increase recl to 16388 it works (but of
course that's not what you want!)  Our RTL people are out this week - I'll
ask them when they return about this.  In the meantime, I'd ask that you
report the problem through your Digital software support contact.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For a summary of Digital's Internet services, send mail to info@digital.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1995-01-04 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-04  1:11 OSF/1 Fortran: can't write long records Frederick Jones
1995-01-04  7:22 ` Per Steinar Iversen
1995-01-04  8:36 ` Jerry Leslie
1995-01-04 16:07 ` Steve Lionel

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