Page 2 of 2

Re: Read cursor position from ISPF Panel

PostPosted: Tue Dec 27, 2022 10:36 am
by Jeff R
now you've slightly confused me...is "myrexx" the name of the REXX I'm writing ?...I've been executing it on ISPF command line via "TSO xxxx" command since the library where it resides is listed in my SYSEXEC of my PROFILE PDS.
if you're suggesting to execute the REXX this way, how is this initiated ?...by a different REXX ?

Re: Read cursor position from ISPF Panel

PostPosted: Tue Dec 27, 2022 11:24 am
by Pedro
My suggestion:

1. continue launching in the same way.

2. in the first few lines of the myrexx, issue VGET for ZAPPLID. If the applid is not what you want, then use the SELECT I mentioned earlier and right away EXIT the program. That is, it should re-launch itself with the desired applid. The next time through, the applid will be correct and then you can execute your program logic.