From: Roger While on
Anybody know why the standard does not allow END-PERFORM
on an out-of-line PERFORM? (It is, of course, mandated for inline)

Roger


From: Anonymous on
In article <g4nm9l$pqu$01$1(a)news.t-online.com>,
Roger While <simrw(a)sim-basis.de> wrote:
>Anybody know why the standard does not allow END-PERFORM
>on an out-of-line PERFORM? (It is, of course, mandated for inline)

I barely know why *I* allow things, let alone anyone else... but if I
recall correctly and END-PERFORM terminates execution of statements which
follow the preceding PERFORM while an 'undelimited' PERFORM directs
execution to the statement following the specified paragraph or section
named.

The delimiter of an 'original' PERFORM, then, seems to be the period (full
stop) which terminates the structure (or range) specified by the
imperative.

DD

From: Michael Mattias on
"Roger While" <simrw(a)sim-basis.de> wrote in message
news:g4nm9l$pqu$01$1(a)news.t-online.com...
> Anybody know why the standard does not allow END-PERFORM
> on an out-of-line PERFORM? (It is, of course, mandated for inline)
???

Several standards allow these syntax constructions; a 'standard' by
definition is simply a statement of "what should work."

However, your compiler (make, model and version not shown) apparently does
not support the standard. (Which standard not shown).

Or maybe it does but you have not coded it correctly. (Code not shown).

MCM





From: Michael Mattias on

<docdwarf(a)panix.com> wrote in message news:g4ntfq$eso$1(a)reader1.panix.com...
> The delimiter of an 'original' PERFORM, then, seems to be the period (full
> stop) which terminates the structure (or range) specified by the
> imperative.

Not quite DD, but close.

The delimeter of the original ('out of line' ) PERFORM would be the end of
the performed paragraph or section, or until the single imperative statement
'EXIT' is executed... . unless the 'range' option you mention (PERFORM
THRU) is used, in which case I generally get lost unless that "THRU" is
simply a paragraph containing only the single imperative statement EXIT.

That is, a PERFORM'ed paragraph or section may contain one or more full
stops which do NOT serve as a scope delimiter for the [out-of-line aka
'original'] PERFORM statement.


MCM







From: Michael Mattias on
>> The delimiter of an 'original' PERFORM, then, seems to be the period
>> (full
>> stop) which terminates the structure (or range) specified by the
>> imperative.

I may have misread this. I read it as....

"The delimiter of an 'original' PERFORM, then, seems to be the period (full
stop), which terminates the structure (or range) specified by the
imperative."

....instead of


"The delimiter of an 'original' PERFORM, then, seems to be the period (full
stop) which terminates the structure (or range) specified by the
imperative."

... as written.

The difference is the comma I mentally inserted after "(full stop)" which
changes the entire meaning from "any full stop" to "the final full stop
found in the named paragraph, section or range."

EXIT would not longer figure in the second case, as an EXIT for out-of-line
perform must be the entire paragraph of the named "THRU" range.

Damn, one little comma changes a lot, huh?

MCM


 |  Next  |  Last
Pages: 1 2 3 4
Prev: contracting in New York city
Next: EVALUATE