Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You can observe a lot just by watching. -- Yogi Berra


devel / comp.lang.fortran / Feed control

SubjectAuthor
* Feed controldb
+- Re: Feed controlSteve Lionel
+- Re: Feed controlGary Scott
+* Re: Feed controlLynn McGuire
|`* Re: Feed controlLawrence D'Oliveiro
| `* Re: Feed controlLynn McGuire
|  `- Re: Feed controlLawrence D'Oliveiro
`- Re: Feed controlJeff Ryman

1
Feed control

<uujitq$3tv68$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3905&group=comp.lang.fortran#3905

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.lang.fortran
Subject: Feed control
Date: Wed, 3 Apr 2024 12:43:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uujitq$3tv68$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 12:43:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3fc59fc5b164e30958ab4c2ac5ec4c56";
logging-data="4127944"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mkdyvlxXYXPQ9SjFjYYBFV0LaiXzFh6s="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:T2GEQGhHkjBlcM7M6XA+rA0fLhs=
 by: db - Wed, 3 Apr 2024 12:43 UTC

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.

Re: Feed control

<l759ohF4oajU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3906&group=comp.lang.fortran#3906

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 3 Apr 2024 11:09:06 -0400
Lines: 35
Message-ID: <l759ohF4oajU1@mid.individual.net>
References: <uujitq$3tv68$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net v7Lnlxl/K71CJipyOsb5oAhHDz+BjT49aMgUNnL3KjrQo98OTp
Cancel-Lock: sha1:iSQyJni25Ui8Cd1XIIvctX4mHVk= sha256:hdYvhogSgL7P4Sf6bY7J/P1HvkqP9lC4z5uJ4gKSeCs=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uujitq$3tv68$1@dont-email.me>
 by: Steve Lionel - Wed, 3 Apr 2024 15:09 UTC

On 4/3/2024 8: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?

Fortran character control in formatted I/O is a "deleted feature" and is
no longer part of the standard. As is typical for deleted features, it
is still supported by many compilers, though you may have to ask for it.
It also perseveres in such things as list-directed output specifying
that the output record starts with a blank.

Fortran carriage control is an artifact of the line printer era - I
remember punching carriage control tapes in the 70s. In addition, many
of today's output devices and environments don't support it.

By definition, deleted features mean that programs that conform to a
previous standard no longer conform to the current one. In nearly all
cases, these are features that are poor practice and are replaced by
better ones, though compilers almost always continue to support them.
--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: Feed control

<uujvoa$1am0$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3907&group=comp.lang.fortran#3907

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: garylscott@sbcglobal.net (Gary Scott)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 3 Apr 2024 11:22:35 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uujvoa$1am0$1@dont-email.me>
References: <uujitq$3tv68$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Apr 2024 16:22:35 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="310ad30f0923a7431b544031acaa36b5";
logging-data="43712"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D7LYFscPw0t7N81kGVE909Bxng+dskII="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+ooRKVtJeHtHrty0iQV+ECRHQEE=
Content-Language: en-US
In-Reply-To: <uujitq$3tv68$1@dont-email.me>
 by: Gary Scott - Wed, 3 Apr 2024 16:22 UTC

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?
>

This was always, and remains device dependent.

> 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.

Re: Feed control

<uukf8i$4v8t$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3908&group=comp.lang.fortran#3908

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 3 Apr 2024 15:47:13 -0500
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <uukf8i$4v8t$1@dont-email.me>
References: <uujitq$3tv68$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Apr 2024 20:47:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="599c2c770da120b19ed87352c2eb1c62";
logging-data="163101"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PR09yHlA7PE+/XVEk0Y9chau4BMY5Mgw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OlrjokF1ewoacLtIsohOWvPlNSE=
In-Reply-To: <uujitq$3tv68$1@dont-email.me>
Content-Language: en-US
 by: Lynn McGuire - Wed, 3 Apr 2024 20:47 UTC

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

Re: Feed control

<uuklo7$6hdl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3909&group=comp.lang.fortran#3909

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 3 Apr 2024 22:38:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uuklo7$6hdl$1@dont-email.me>
References: <uujitq$3tv68$1@dont-email.me> <uukf8i$4v8t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 22:38:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="65e60660af7cb8bb1a5c0eb384b8a9e7";
logging-data="214453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tfeU71L2PySmqViNiyz4I"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:x6f0sv3q+k6HUTpilVbZDvJP7RI=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 22:38 UTC

On Wed, 3 Apr 2024 15:47:13 -0500, Lynn McGuire wrote:

> ... we still use Fortran carriage control in column 1 in all of our main
> write statements, about 40,000 of them in our code.

Never too soon to start fixing them. Do it one at a time.

Re: Feed control

<s4pr0j9furfr85se1dakitipgv7mbefqb3@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3910&group=comp.lang.fortran#3910

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!.POSTED!not-for-mail
From: rymanjc@outlook.com (Jeff Ryman)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 03 Apr 2024 16:32:06 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <s4pr0j9furfr85se1dakitipgv7mbefqb3@4ax.com>
References: <uujitq$3tv68$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="2995"; mail-complaints-to="usenet@i2pn2.org";
posting-account="f/utwbgwEIRvIgrNKkmfgq6VLs0bI+0rbmBywvegfUg";
User-Agent: ForteAgent/8.00.32.1272
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Jeff Ryman - Wed, 3 Apr 2024 23:32 UTC

On Wed, 3 Apr 2024 12:43:38 -0000 (UTC), db
<dieterhansbritz@gmail.com> 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.

The *nix command asa will remove the first character
of every line and output the rest of the line to standard
output as follows:
1) space - output the rest of the line without change
2) 0 - Replace by a newline followed ty the rest of the input line
3) 1 - Replace by a newpage followed by the rest of the input line
4) + - Replace by a control to return to the first column of the
previous line, where the rest of the input line is printed.

usage is: asa input_file > output_file

This allows the output file to be printed as originally intended.

Someplace I have the source to a Fortran program I wrote
for DOS in the 1990s to perform the same function.

Re: Feed control

<uukrof$7p2o$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3911&group=comp.lang.fortran#3911

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Wed, 3 Apr 2024 19:20:30 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uukrof$7p2o$1@dont-email.me>
References: <uujitq$3tv68$1@dont-email.me> <uukf8i$4v8t$1@dont-email.me>
<uuklo7$6hdl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 04 Apr 2024 00:20:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0d46017dda54f28c14015d14ded8c51f";
logging-data="255064"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QGQ1kmSSFKigUxouS5Xri5R2PQ/Hy3Ng="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+cFzZssPW7qPffG6noKzrp+n+Gw=
Content-Language: en-US
In-Reply-To: <uuklo7$6hdl$1@dont-email.me>
 by: Lynn McGuire - Thu, 4 Apr 2024 00:20 UTC

On 4/3/2024 5:38 PM, Lawrence D'Oliveiro wrote:
> On Wed, 3 Apr 2024 15:47:13 -0500, Lynn McGuire wrote:
>
>> ... we still use Fortran carriage control in column 1 in all of our main
>> write statements, about 40,000 of them in our code.
>
> Never too soon to start fixing them. Do it one at a time.

Gotta do them all at once since the carriage control is controlled by
the OPEN statement.

Lynn

Re: Feed control

<uun2q1$s192$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3915&group=comp.lang.fortran#3915

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.fortran
Subject: Re: Feed control
Date: Thu, 4 Apr 2024 20:33:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uun2q1$s192$2@dont-email.me>
References: <uujitq$3tv68$1@dont-email.me> <uukf8i$4v8t$1@dont-email.me>
<uuklo7$6hdl$1@dont-email.me> <uukrof$7p2o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 04 Apr 2024 20:33:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b2ebab76618f2906d24b8f2b6b05668a";
logging-data="918818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dSZfyaQZd+cy0m2LaV4P/"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Y0S0lsqKsDcBwrFnL8izV/iDjG0=
 by: Lawrence D'Oliv - Thu, 4 Apr 2024 20:33 UTC

On Wed, 3 Apr 2024 19:20:30 -0500, Lynn McGuire wrote:

> On 4/3/2024 5:38 PM, Lawrence D'Oliveiro wrote:
>
>> On Wed, 3 Apr 2024 15:47:13 -0500, Lynn McGuire wrote:
>>
>>> ... we still use Fortran carriage control in column 1 in all of our
>>> main write statements, about 40,000 of them in our code.
>>
>> Never too soon to start fixing them. Do it one at a time.
>
> Gotta do them all at once since the carriage control is controlled by
> the OPEN statement.

There is a way to do it: open a second output file, without the Fortran
carriage control setting. Send both outputs to pipes read by a separate
filter process that interleaves the lines back into the real output file.

Now you can go through gradually, changing those output statements one by
one to write to the second file. Once they are all done, you can get rid
of the first file and the filter process, and resume output directly to
the output file.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor