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 get the text at the cursor position as input to REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Tue Feb 07, 2006 5:57 pm    Post subject: How to get the text at the cursor position as input to REXX
Reply with quote

Hi,

Can anyone help me in passing the text at the cursor position as input to the REXX program?

i.e. I would type the REXX pgm name in the command line and then move the cursor to the required position. This pgm should get the text at the cursor as input and run..
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Feb 07, 2006 6:38 pm    Post subject:
Reply with quote

It depends:

If you are in ISPF editor, you use edit-macro commands like CURSOR, LINE etc.

If you are not in editor, you can use the ZSCREEN* system variables. You can find example here.

O.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Feb 07, 2006 6:44 pm    Post subject: Re: How to get the text at the cursor position as input to R
Reply with quote

If you are looking to code this as an ISPF EDIT Macro, then you might want to look at the ZOOM command for a good example. The ZOOM command is not a part of standard ISPF, but many shops have it installed anyway. If you don't have it available, the source code is posted on the Internet.
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Feb 08, 2006 8:10 pm    Post subject:
Reply with quote

Thanks ofer71.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


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