Re: EXIT PERFORM Help, please

From: Pete Dashwood (dashwood_at_enternet.co.nz)
Date: 11/18/04


Date: Thu, 18 Nov 2004 15:39:12 +1300

Thank you Richard for a succinct and easily assimilable response.

I wasn't aware of EXIT PERFORM CYCLE but your response clearly addresses my
question.

Pete.

"Richard" <riplin@Azonic.co.nz> wrote in message
news:217e491a.0411171053.2695e42e@posting.google.com...
> "Pete Dashwood" <dashwood@enternet.co.nz> wrote
>
> > Does EXIT PERFORM finish ALL cycles of the PERFORM, or does it just
finish
> > the current cycle?
>
> In Fujitsu there are:
>
> EXIT PERFORM
> EXIT PERFORM CYCLE
>
> Does this answer your question ?
>
> > If it finishes ALL cycles and transfers to the statement FOLLOWING the
> > END-PERFORM (rather than to the END-PERFORM itself), then there is no
need
> > for me to run a finish flag whose only real purpose is to tell the
PERFORM
> > when to stop.
>
> There is no need to use a 'finish flag' if you use EXIT PERFORM. To
> support this you can use PERFORM WITH NO LIMIT, though this is not '02
> compliant.
>



Relevant Pages

  • Re: Infinite Loops and Explicit Exits
    ... RS>>> EXIT PERFORM CYCLE eliminates those GO TO statements. ... > paragraphs, ... Cobol also supports the use of completely spagetti code entirely based ...
    (comp.lang.cobol)
  • Re: Cobol Myth Busters
    ... perform timer-on ... perform repeat-factor times ... What is the advantage of using EXIT PERFORM CYCLE over CONTINUE? ...
    (comp.lang.cobol)
  • Re: Style and use commentary Re: Fortran Lesson: Are these equivalent?
    ... CYCLE or EXIT to any level is automatically obtained. ... When construct names are religiously used, then, the modern syntax ... allowed alphanumerics statement labels (and longer than 5 characters ...
    (comp.lang.fortran)
  • Re: Infinite Loops and Explicit Exits
    ... > EXIT CYCLE resembles EXIT PERFORM in the sense that they both imply ... the 2002 standard (where it is only recognized as "special" in the context ... asa s reserved word SKIP would have SKIP isn't a reserved word. ...
    (comp.lang.cobol)
  • Re: Infinite Loops and Explicit Exits
    ... > EXIT CYCLE resembles EXIT PERFORM in the sense that they both imply ... the 2002 standard (where it is only recognized as "special" in the context ... add "SKIP" as a reserved word. ...
    (comp.lang.cobol)