Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 160
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: 160
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: 1243
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us