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

How to get the text at the cursor position as input to REXX


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Tue Feb 07, 2006 6:38 pm
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

Global Moderator


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

PostPosted: Tue Feb 07, 2006 6:44 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top