IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to hold cursor position after a SAY statement in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Thu Dec 09, 2010 5:43 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 09, 2010 5:47 pm
Reply with quote

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
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Thu Dec 09, 2010 6:06 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Dec 09, 2010 6:26 pm
Reply with quote

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
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Thu Dec 09, 2010 6:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top