Page 1 of 1

Set cursor position in ISPF

PostPosted: Thu Jan 19, 2012 2:26 pm
by mandor
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.

Re: Set cursor position in ISPF

PostPosted: Thu Jan 19, 2012 8:14 pm
by Pedro
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.

Re: Set cursor position in ISPF

PostPosted: Thu Jan 19, 2012 9:13 pm
by enrico-sorichetti
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>