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
 
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

Senior Member


Joined: 07 Feb 2009
Posts: 1060
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: 6968
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: 1243
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm

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