Discussion:
How to suppress 'CRLF' in a SAY instruction ?
(too old to reply)
Jean-Louis Tourné
2023-01-24 08:35:32 UTC
Permalink
Hello,

Is it possible in a rexx SAY instruction to suppress the CRLF character to avoid that the next SAY appears on a new line ?
I would like that the result of the second SAY instruction follows, on the same line, the result of the first SAY instruction.
Exemple :
SAY 'first line'
SAY 'second line'

Would appear as :
first line second line

and not as :
first line
second line

Thank you
Rick McGuire
2023-01-24 13:09:56 UTC
Permalink
Post by Jean-Louis Tourné
Hello,
Is it possible in a rexx SAY instruction to suppress the CRLF character to avoid that the next SAY appears on a new line ?
I would like that the result of the second SAY instruction follows, on the same line, the result of the first SAY instruction.
SAY 'first line'
SAY 'second line'
use

call charout ,"first line '
say 'second line'

Note that I had to add a space to the literal for first line to create the separation.
Post by Jean-Louis Tourné
first line second line
first line
second line
Thank you
Jean-Louis Tourné
2023-01-24 15:01:30 UTC
Permalink
Post by Rick McGuire
Post by Jean-Louis Tourné
Hello,
Is it possible in a rexx SAY instruction to suppress the CRLF character to avoid that the next SAY appears on a new line ?
I would like that the result of the second SAY instruction follows, on the same line, the result of the first SAY instruction.
SAY 'first line'
SAY 'second line'
use
call charout ,"first line '
say 'second line'
Note that I had to add a space to the literal for first line to create the separation.
Post by Jean-Louis Tourné
first line second line
first line
second line
Thank you
Thank you, exactly what I was looking for.

Loading...