× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Perform Varying Statement
  • From: Howard Weatherly <hweatherly@xxxxxxxxxxxx>
  • Date: Mon, 29 Nov 1999 13:47:50 -0500

Chris,

In your example, the compiler could easily be confused because of the
positionling of the scope delimeter, end-perform refers to the perform
immediatly preceeding and would leave the initial perform un-terminated until it
found a period or an end-perform. Each in-line perform must be terminated with a
scope delimiter while an out-of-line perform does not. "BUT" the compiler can
get confused! and is most likely pairing the end-perform with the perform add
and then notices that the perform varying is un-terminated. And since I am
answering then reading :-), the seu editor is even less adapt at parsing! This
does work, I have done it.

Chris.Chambers@v2music.com wrote:

> I have also tried this and it would seem that the editor does not like a
> 'perform varying' as the operation to be performed.
>
> Try putting the add statement in a seperate section or paragraph thus :
>
> Perform Varying INDEX01 from 1 by 1 until INDEX 01 is > 50
>      Perform ADD
> End-Perform
>
> ADD SECTION.
> ADD-START
>      Perform Varying   INDEX02    from 1 by 1 until    INDEX02 is > 75
>           Add X, Y giving Z
>      End-Perform.
>
> ADD-EXIT.
> Exit.
>
> "Hess, Dyanna" <Dyanna.Hess@valueoptions.com> on 29/11/99 16:13:12
>
> Please respond to COBOL400-L@midrange.com
>
> To:   "'COBOL400-L@midrange.com'" <COBOL400-L@midrange.com>
> cc:    (bcc: Chris Chambers/London/V2 Music)
> Subject:  RE: Perform Varying Statement
>
> My project was to make a two dimensional table so I tried using:
>      Perform Varying _____ from 1 by 1 until ______ is > 50
>      Perform Varying _____ from 1 by 1 until ______ is > 75
>      end-perform
> But I wouldn't take the whole screen looked like a Christmas tree!
> I have not seen any examples of this structure here at my work. Should I
> have put and add statement below the last perform connecting them together?
> Example"
>
>      Add (_______), (__________)
>
> I saw something of this sort in a COBOL/400 book. Would something of this
> sort take?
> Thanks for answering my question.
>
> Dyanna
>
> -----Original Message-----
> From: Chris.Chambers@v2music.com [mailto:Chris.Chambers@v2music.com]
> Sent: Monday, November 29, 1999 10:39 AM
> To: COBOL400-L@midrange.com
> Subject: Re: Perform Varying Statement
>
> The perform varying statement should work - please post the exact code -
> does it
> fail at compile time or does the editor
> highlight some 'grammatical' error.
>
> +---
> | This is the COBOL/400 Mailing List!
> | To submit a new message, send your mail to COBOL400-L@midrange.com.
> | To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---END
>
>   ------------------------------------------------------------------------
>                   Name: att1.htm
>    att1.htm       Type: Hypertext Markup Language (text/html)
>               Encoding: base64
>            Description: Internet HTML

+---
| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.