Re: Feed control

Liste des GroupesRevenir à cl fortran 
Sujet : Re: Feed control
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortran
Date : 03. Apr 2024, 21:47:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uukf8i$4v8t$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 4/3/2024 7:43 AM, db wrote:
When I learned Fortran many years ago, the first
character in a line to be printed (or later,
displayed) controlled line or page feed. A blank
produced a new line, a "1" a new page. We used these
to control what happened.
 These days, this doesn't seem to be the case, so
in a sense, Fortran is no longer backward
compatible in this one sense. Or is it?
 As an aside, back in the 1970's, working on an
IBM 360, where we handed in a stack of punch cards
to be run and got the output some time later as a
print-out, I once accidentally put a "c" in as the
first character in a line of output, and this caused
an endless paper feed, until the operator stopped
it. I got a stern note never to run that program
again, on top of a thick stack of blank paper.
I use the following in Watcom F77 Fortran as we still use Fortran carriage control in column 1 in all of our main write statements, about 40,000 of them in our code.
C        open the output file
       OPEN (UNIT    = oufile,
      *      FILE    = OUPATH,
      *      ACTION  = 'WRITE',
      *      ACCESS  = 'SEQUENTIAL',
      *      STATUS  = 'UNKNOWN',
!              watcom uses yes
      *      CARRIAGECONTROL = 'YES',
!              gfortran uses 'FORTRAN'
!     *      CARRIAGECONTROL = 'FORTRAN',
!              does not work on gfortran
!     *      BLOCKSIZE = 80,
      *      FORM    = 'FORMATTED',
      *      IOSTAT  = OPERR,
      *      ERR     = 400)
Lynn

Date Sujet#  Auteur
3 Apr 24 * Feed control8db
3 Apr 24 +- Re: Feed control1Steve Lionel
3 Apr 24 +- Re: Feed control1Gary Scott
3 Apr 24 +* Re: Feed control4Lynn McGuire
4 Apr 24 i`* Re: Feed control3Lawrence D'Oliveiro
4 Apr 24 i `* Re: Feed control2Lynn McGuire
4 Apr 24 i  `- Re: Feed control1Lawrence D'Oliveiro
4 Apr 24 `- Re: Feed control1Jeff Ryman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal