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

Senior Member


Joined: 07 Feb 2009
Posts: 1018
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: 6967
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: 1228
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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am


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