Re: ISPF edit macro behaivor in SDSF

2019-03-29 Thread Dana Mitchell
Thanks Rob, the top of my rexx is basically the same as your test and seemed to 
behave the same as mine.  But your suggestion prodded me in the right direction 
to an explanation of whats going on.  What I discovered, is in the PFKey 
settings used in SDSF EDIT,  'ISF Keylist ISFEDKEY'   I had the PFkeys set to:

PF22 . . ;CA E
PF23 . . ;CA V

Once I removed the ';'  from the beginning of the command all is well and 
working correctly.  I thought at one time,  the prefix ';'  was needed on a 
pfkey to simulate the command preserving the cursor position,  but apparently 
that isn't needed any more.  Seems like it was initially needed for the QW 
clist to allow point and shoot at message numbers.   Further,  I don't find any 
reference to the prefix ';'   in ISPF User's Guide Vol II.  The only special 
characters shown there are ':'  and  '>'.Could this have changed sometime 
in the last (cough cough) years? 

Dana


On Fri, 29 Mar 2019 14:07:12 +, Rob Scott  wrote:
>
>I would double-check your REXX exec code - perhaps paste to the forum?
>
>"SE" and "SJ" use ISPF "EDIF" services - pretty much all SDSF does is supply 
>the data for the "get first/next" record request from EDIF.
>
>I have just executed the following simple REXX EDIT macro in SDSF SJ and SE in 
>2.2 and 2.3 and the results were as expected:
>
>address ISREDIT "MACRO"
>address ISREDIT "(CURROW CURCOL) = CURSOR "
>address ISREDIT "(CURLINE) = LINE "CURROW
>say currow
>say curline
>
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ISPF edit macro behaivor in SDSF

2019-03-29 Thread Rob Scott
Dana

I would double-check your REXX exec code - perhaps paste to the forum?

"SE" and "SJ" use ISPF "EDIF" services - pretty much all SDSF does is supply 
the data for the "get first/next" record request from EDIF.

I have just executed the following simple REXX EDIT macro in SDSF SJ and SE in 
2.2 and 2.3 and the results were as expected:

address ISREDIT "MACRO"
address ISREDIT "(CURROW CURCOL) = CURSOR "
address ISREDIT "(CURLINE) = LINE "CURROW
say currow
say curline


Rob Scott
Rocket Software.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Dana Mitchell
Sent: Friday, March 29, 2019 1:15 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ISPF edit macro behaivor in SDSF

I have an edit macro that I've used in one form or another for many years,  
it's my version of the point and shoot edit.  Place the cursor on a dataset 
name in a jcl member for instance,  hit the PFK set to ';CA'   and you are 
taken to edit of that dataset.  It discerns the dataset name by doing a

ISREDIT "(lne,col) = CURSOR"

and parsing out the dataset name you are pointing at.  I'm not sure when I 
first noticed it,  but it appears to not operate correctly in SDSF (z/OS 2.2 
currently)  edit of JCL or output from the SJ or SE line command.  The row and 
column returned are of the first non-blank character of the next line,  someone 
pressed enter before invoking the macro, which usually with a JCL listing, just 
happens to be a '/'  so you end up with a 'z/OS UNIX Directory List'  of the 
root.  I don't find any mention of any restrictions on edit macros in the SDSF 
FM.  Anybody else tried this? is it pmr time?

Dana

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: 
https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - 
http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


ISPF edit macro behaivor in SDSF

2019-03-29 Thread Dana Mitchell
I have an edit macro that I've used in one form or another for many years,  
it's my version of the point and shoot edit.  Place the cursor on a dataset 
name in a jcl member for instance,  hit the PFK set to ';CA'   and you are 
taken to edit of that dataset.  It discerns the dataset name by doing a

ISREDIT "(lne,col) = CURSOR"   

and parsing out the dataset name you are pointing at.  I'm not sure when I 
first noticed it,  but it appears to not operate correctly in SDSF (z/OS 2.2 
currently)  edit of JCL or output from the SJ or SE line command.  The row and 
column returned are of the first non-blank character of the next line,  someone 
pressed enter before invoking the macro, which usually with a JCL listing, just 
happens to be a '/'  so you end up with a 'z/OS UNIX Directory List'  of the 
root.  I don't find any mention of any restrictions on edit macros in the SDSF 
FM.  Anybody else tried this? is it pmr time?

Dana

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN