View previous topic :: View next topic
|
Author |
Message |
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi All,
Is there anyway to hold cursor position after a SAY statement in REXX?
For example, I have following REXX code.
Code: |
Say ' Please Enter Your Option ===>'
Pull option
Say 'You have entered'option
|
Cursor will blink in next line after displaying "Please Enter Your Option ===>" string. But I want to hold it on the same line at the end of the message to pull my option.
Kindly let me know how to do this with REXX if it can be possible with REXX.
Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Any particular reason that you would want to do that, let alone need to do that.
HAve you considered the use of ISPF panels to collect user input ? |
|
Back to top |
|
|
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi Expat,
I am trying to create a menu driven program for that if I hold the cursor on the same line after requesting user input it looks good.
I am reading input from ISPF panel only.
Is there anyway to do that?
Thanks, |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
satish.ms10 wrote: |
I am reading input from ISPF panel only. |
Then you should use the panel to collect the option too.
There is no better way. |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
FWIW, Though I know that CLIST is anathema to many using these fora, CLIST does support what you want to do via the WRITENR (write with no return) statement to display the "prompt" - followed by a READ statement to retrieve the response.
And the mainframe doesn't really mind if you use CLIST instead of REXX.
Your call. |
|
Back to top |
|
|
|