Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rexx and say w/o newline

646 views
Skip to first unread message

John C. Frickson

unread,
Jan 30, 1996, 3:00:00 AM1/30/96
to
In <4elc9o$s...@news.ran.es>, ban...@ran.es writes:
>Is there any way from within Rexx (OS/2 2.x/Warp) to print
>a string or single character WITHOUT a newline? Have tried
>with ANSI codes, lineout and say, but with no success.
>
>Thanks in advance.

Call CharOut , "Print this with no newline"

--
John C. Frickson | http://www.gibbon.com/ | * OS/2 * Linux *
Gibbon Computer Products | ftp://ftp.gibbon.com | PGP Fingerprint:
9864 Palm St. NW | Phone: +1 612 754 6557 | FD743D4E209DFC26
Coon Rapids, MN 55433 | VISA/MasterCard/AmEx | 371905C7B52B36E9


ban...@ran.es

unread,
Jan 30, 1996, 3:00:00 AM1/30/96
to
Is there any way from within Rexx (OS/2 2.x/Warp) to print
a string or single character WITHOUT a newline? Have tried
with ANSI codes, lineout and say, but with no success.

Thanks in advance.

Tomas Chan <big...@ibm.net> (home)
<tc...@mail.ddnet.es> (home)
<75627,405> (Compuserve)


ora...@ibm.net

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
In <4elc9o$s...@news.ran.es>, ban...@ran.es writes:

do not use 'say', use 'charout' instead.

otto raeder

Joe R Wyatt

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
In message <4elc9o$s...@news.ran.es> - ban...@ran.es writes:
:>
:>Is there any way from within Rexx (OS/2 2.x/Warp) to print
:>a string or single character WITHOUT a newline? Have tried
:>with ANSI codes, lineout and say, but with no success.
:>
:>Thanks in advance.
:>
:> Tomas Chan <big...@ibm.net> (home)
:> <tc...@mail.ddnet.es> (home)
:> <75627,405> (Compuserve)
:>

This question has been answered already, but you might want to check out the
electronic developer's magazine for os/2 column on rexx. January's article
was about file i/o and covered this topic. You can get to EDM/2 through
http://www.iqpac.com

Let me know if the article helps.

joe r wyatt


Mark Schlegel

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
ban...@ran.es wrote:
: Is there any way from within Rexx (OS/2 2.x/Warp) to print

: a string or single character WITHOUT a newline? Have tried
: with ANSI codes, lineout and say, but with no success.


sure this is especially handy when you want to let someone
enter data from the keyboard right after the prompt you just
printed. suppose you put this up with lineout
Enter here :>

by using call lineout stdout,"Enter here:> "

this would force the prompt to the next line and defeat having
the nice enter prompt, so try this:

call charout stdout,"Enter here:> "
parse linein ans


this will get the entered stuff from the keyboard and parse to variable
ans. If know know for sure that the entered stuff will not have
spaces in it, you could do this in the parse:

parse linein ans .

this will dump any unwanted chars from the end of the enter so they
don't get in 'ans'

Mark


Jean-Pierre Cabanié

unread,
Feb 2, 1996, 3:00:00 AM2/2/96
to
In message <4elc9o$s...@news.ran.es> - ban...@ran.es writes:
:>
:>Is there any way from within Rexx (OS/2 2.x/Warp) to print

:>a string or single character WITHOUT a newline? Have tried
:>with ANSI codes, lineout and say, but with no success.

Just use Call CharOut ,'Your choosen prompt '
(don't forget the leading comma...)

Jean-Pierre Cabani/e


0 new messages