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
 

 

X-Y COORDINATES OF CURSOR IN EDIT MACRO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: X-Y COORDINATES OF CURSOR IN EDIT MACRO
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

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Fri Sep 04, 2009 7:45 pm    Post subject:
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: 6966
Location: porcelain throne

PostPosted: Fri Sep 04, 2009 8:01 pm    Post subject:
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: 1224
Location: Israel

PostPosted: Sat Sep 05, 2009 12:22 am    Post subject:
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    Post subject: Reply to: X-Y COORDINATES OF CURSOR IN EDIT MACRO
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts Use of Edit & FTOV migusd SYNCSORT 3 Wed Jun 08, 2016 1:49 am


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