Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to hold cursor position after a SAY statement in REXX

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

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Thu Dec 09, 2010 5:43 pm    Post subject: How to hold cursor position after a SAY statement in REXX
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: 8593
Location: Back in jolly old England

PostPosted: Thu Dec 09, 2010 5:47 pm    Post subject:
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: 158
Location: India

PostPosted: Thu Dec 09, 2010 6:06 pm    Post subject:
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: 1232
Location: Israel

PostPosted: Thu Dec 09, 2010 6:26 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Iterative use of a REXX script causin... bryonyh CLIST & REXX 3 Fri Jul 28, 2017 12:52 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us