> No, that's a single-linee string.

No, it's the concatenation of two strings with a separating blank.

> The loop setup, iteration, and termination should be part of the DO,

In a C for statement, not in general.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Paul Gilmartin [[email protected]]
Sent: Thursday, June 24, 2021 4:49 PM
To: [email protected]
Subject: Re: Coding for the future

On Tue, 22 Jun 2021 18:39:19 -0400, Bob Bridges <[email protected]> wrote:

>Gil, I don't follow what you mean about multi-line strings.  I know you can't 
>mean this, which REXX handles just fine:
>
>  Longstr='blah blah blah blah blah blah blah blah',
>     'blah blah blah blah blah blah blah blah blah'
>
No, that's a single-linee string.  Verify that with:
    SAY Longstr

>And your second wish is surely not significantly different from:
>
>  list='ssn ssx stm wcn wcx wln wlx wld'
>  do while list<>''
>    parse var list val list
>    /* etc */
>
>...which I do frequently.
>
Style.  The loop setup, iteration, and termination should be part of the DO,
even s I woulfn't code:
    I = 1
    DO WHILE I <= 10
        whatever
        I = I + 1
        END

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to