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

X-Y COORDINATES OF CURSOR IN EDIT MACRO


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
GaneshMF

New User


Joined: 19 Jun 2009
Posts: 27
Location: Chennai

PostPosted: Fri Sep 04, 2009 7:40 pm
Reply with quote

Hi all,

My requirement to retrieve the word in the current cursor position when the edit macro runs...

I just wanted to know how to retrieve the word instead of the whole line using "LINE .ZCSR".

How to retrieve the word?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Fri Sep 04, 2009 7:45 pm
Reply with quote

Code:
"isredit (R,C) = cursor"
and the rest can be found in the manual, i.e. if the cursor is not on the datalines. No inclination to look it up.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Fri Sep 04, 2009 8:01 pm
Reply with quote

Quote:
I just wanted to know how to retrieve the word instead of the whole line using "LINE .ZCSR".


as Prino said, RT FM.

LINE returns the complete line.

as Prino indicated, retrieving the cursor position with CURSOR will give you a column number, which you can use as the starting position of a SUBSTR command.

[RANT]
The phrase x,y coordinates is not applicable with cursor positioning, that refers to graphs.

the correct terminology is Line number, column - which you may learn if you bother to read the manual.

Using your own terminology does not help.

[/RANT]
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Sat Sep 05, 2009 12:22 am
Reply with quote

This forum is full of questions like this. Check this topic
Back to top
View user's profile Send private message
GaneshMF

New User


Joined: 19 Jun 2009
Posts: 27
Location: Chennai

PostPosted: Mon Sep 07, 2009 12:38 pm
Reply with quote

Thank you very much for your replies...
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 6
No new posts Access to macro definitions PL/I & Assembler 4
No new posts Inserting into table while open selec... DB2 1
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:


Back to Top