Set cursor position in ISPF



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Set cursor position in ISPF

Postby mandor » Thu Jan 19, 2012 2:26 pm

Hello!

I have an Edit macro that changes some code on line command. When macro ends the cursor is positioned on command line and I would like it to stay on the line i was editing or the next line. I was looking into .ZCSR with no results.
mandor
 
Posts: 28
Joined: Wed Feb 23, 2011 4:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Set cursor position in ISPF

Postby Pedro » Thu Jan 19, 2012 8:14 pm

Use the CURSOR macro command to save the cursor location at the beginning of your macro.

Then use the CURSOR macro command to set the cursor location based on the saved values.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Set cursor position in ISPF

Postby enrico-sorichetti » Thu Jan 19, 2012 9:13 pm

it would be useful to meditate on

http://publib.boulder.ibm.com/infocente ... cursor.htm

and on the behavior of cursor position when invoking a macro and using a scroll command
and of the differences when using PROCESS/NOPROCESS in the macro <definition>
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post