Re: ISPF EDIT CHANGE regex requirements?

2025-04-13 Thread Seymour J Metz
WSA2?

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of Tom Brennan
Sent: Saturday, April 12, 2025 6:01 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


So I have an ISPF edit plug-in, where instead of the normal dataset
edit, something else happens.  That something else starts up a "desktop
display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
activity, since ISPF can't handle those methods directly.  If that's all
correct, what happens next, and why?

On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
   -
> Clearly, the Idea should b for ISPF to support Edit plug-ins.
> These could use desktop displays by transports such as ssh,
> sftp, X11, NFS, ...
>

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




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-13 Thread Seymour J Metz
I'll stick with TSPF; the macro language is Rexx and it supports more of the 
Dialog Manager.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of Mike Schwab
Sent: Saturday, April 12, 2025 6:14 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


Have you tried 
https://secure-web.cisco.com/1T9DfIx2gLjcKLgktLMPl43jLnxlzY14HUrD67V72WyIBCs_2YrMsPh8s_ReVL6KoKSUj8dez4uRvmdFk9OOgnsTbf7pchGIHQ3XL8OkIO0iWY2rmYrlx1o1FAp8EMUUE8jbVgQUQ9BybcShrRzHYrexVJ_7A8qMA4KljfRrDvxeTEn4aucYrXxSAq2a9CBViuXKPxdg0T_EWOgIIUfdi3bgPRKNpYPv_r0jum3t1TsiSzITvYvWLhdtht2wMTb-fac7i_58pn4Xj3MTgFfMHbx7Z-w9NQzV_VIL4GhD6A_xQcE9MaWCg_Fz3C3I23Ax4fCnIiHzc-wanbCAOMG2QuStBk7MgRdZ5ZRWzqoMdXbl0AALxSgXh0w-37fzeX9IKK8c1faFVewHZBogJvFRSplH3y2h1ZQ6KvSBIwtWACdI/https%3A%2F%2Fwww.spflite.com%2F
 , a windows program that edits on
your PC in EBCDIC then submits to the mainframe?

On Sat, Apr 12, 2025 at 5:01 PM Tom Brennan 
wrote:

> So I have an ISPF edit plug-in, where instead of the normal dataset
> edit, something else happens.  That something else starts up a "desktop
> display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
> client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
> activity, since ISPF can't handle those methods directly.  If that's all
> correct, what happens next, and why?
>
> On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
>    -
> > Clearly, the Idea should b for ISPF to support Edit plug-ins.
> > These could use desktop displays by transports such as ssh,
> > sftp, X11, NFS, ...
> >
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

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





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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-13 Thread Seymour J Metz
URL for manual? Does it support ooRexx as a macro language? What platforms?

FWIW, while I use FOSS, I would rather pay for an editor that suits my needs 
than use a free one that doesn't.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of David Crayford
Sent: Saturday, April 12, 2025 8:45 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


> On 13 Apr 2025, at 6:14 am, Mike Schwab 
> <05962a42dc49-dmarc-requ...@listserv.ua.edu> wrote:
>
> Have you tried 
> https://secure-web.cisco.com/1Llr8NNhpSTGBWIZMXXcleK_ijcCzVa9AigGA1zSzIXmzyQHoxmzalTL0lRwVn1hKrwOWzE4u_d5WqYk7UAlY2RqmXtkxpXhyrihCQ3Mj7jk4gURaqScvtpGIpyF0Vr6sIcQi8LptOnZruR70AF5bYIAE-sjV6cwl9aeYvZdpcYPu_qIy-Sj0Rzfkp_xrmYgSnombd0EcG259HYJGcmagI1mMXQkaxfUfW0KHd8c2o3K1QNpfH5rxcuwrKgdQmnM20J01vbqN_qSZzJpOGsj5OHnwPPsoyQpKwlObKXjkQrXOUlRLxLRr8GeAPTJQQB_FjhsrS2Is2GFij6F50Kz_sBYFjD3x4UEtOwI2hcpkSErcczmtZbI7Et8gcShZ_0cRDaRp4W-41v6EHu2QJe6GdSs4c1FN9vv9fafJ5Xq2fI4/https%3A%2F%2Fwww.spflite.com%2F
>  , a windows program that edits on
> your PC in EBCDIC then submits to the mainframe?
>

No. Why would I use it instead of SlickEdit, which supports EBCDIC, SBCS, DBCS, 
and every mainframe language you can think of, including Model 204? Its find 
and replace handles every flavour of regular expressions with ease.

https://www.youtube.com/watch?v=gWIWOEox018&list=PLAfxJLNu8RF-bkm05rl0uiHY-_9yDLOyO&index=1

It even has an ISPF emulation mode if primary and line commands still flick 
your switch.

> On Sat, Apr 12, 2025 at 5:01 PM Tom Brennan 
> wrote:
>
>> So I have an ISPF edit plug-in, where instead of the normal dataset
>> edit, something else happens.  That something else starts up a "desktop
>> display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
>> client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
>> activity, since ISPF can't handle those methods directly.  If that's all
>> correct, what happens next, and why?
>>
>> On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
>>   -
>>> Clearly, the Idea should b for ISPF to support Edit plug-ins.
>>> These could use desktop displays by transports such as ssh,
>>> sftp, X11, NFS, ...
>>>
>>
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>>
>
>
> --
> Mike A Schwab, Springfield IL USA
> Where do Forest Rangers go to get away from it all?
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


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




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Paul Gilmartin
On Sat, 12 Apr 2025 20:22:39 -0700, Tom Brennan wrote:

>No, I keep meaning to.  But I think that's getting way off what started
>this thread, which was:
>"Or, empower ISPF to invoke vim as an alternate editor."
>
Somewhat earlier, there was, "an Idea to add PCRE refer backs to ISPF Edit."
Possible with n Edit macro with brutal performance cost.  How about an
emulator macro for a 3270 emulator with macro capability?

-- 
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Tom Brennan
No, I keep meaning to.  But I think that's getting way off what started 
this thread, which was:

"Or, empower ISPF to invoke vim as an alternate editor."

On 4/12/2025 3:14 PM, Mike Schwab wrote:

Have you tried https://www.spflite.com/ , a windows program that edits on
your PC in EBCDIC then submits to the mainframe?

On Sat, Apr 12, 2025 at 5:01 PM Tom Brennan 
wrote:


So I have an ISPF edit plug-in, where instead of the normal dataset
edit, something else happens.  That something else starts up a "desktop
display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
activity, since ISPF can't handle those methods directly.  If that's all
correct, what happens next, and why?

On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
-

Clearly, the Idea should b for ISPF to support Edit plug-ins.
These could use desktop displays by transports such as ssh,
sftp, X11, NFS, ...



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






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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread David Crayford
> On 13 Apr 2025, at 6:14 am, Mike Schwab 
> <05962a42dc49-dmarc-requ...@listserv.ua.edu> wrote:
> 
> Have you tried https://www.spflite.com/ , a windows program that edits on
> your PC in EBCDIC then submits to the mainframe?
> 

No. Why would I use it instead of SlickEdit, which supports EBCDIC, SBCS, DBCS, 
and every mainframe language you can think of, including Model 204? Its find 
and replace handles every flavour of regular expressions with ease.

https://www.youtube.com/watch?v=gWIWOEox018&list=PLAfxJLNu8RF-bkm05rl0uiHY-_9yDLOyO&index=1

It even has an ISPF emulation mode if primary and line commands still flick 
your switch.

> On Sat, Apr 12, 2025 at 5:01 PM Tom Brennan 
> wrote:
> 
>> So I have an ISPF edit plug-in, where instead of the normal dataset
>> edit, something else happens.  That something else starts up a "desktop
>> display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
>> client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
>> activity, since ISPF can't handle those methods directly.  If that's all
>> correct, what happens next, and why?
>> 
>> On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
>>   -
>>> Clearly, the Idea should b for ISPF to support Edit plug-ins.
>>> These could use desktop displays by transports such as ssh,
>>> sftp, X11, NFS, ...
>>> 
>> 
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>> 
> 
> 
> -- 
> Mike A Schwab, Springfield IL USA
> Where do Forest Rangers go to get away from it all?
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread David Crayford
> On 13 Apr 2025, at 2:38 am, Seymour J Metz  wrote:
> 
> Useful in scripts, but it doesn't enhance ISPF EDIT CHANGE. What advantage 
> does it have over PCRE2?

You can easily write a script to implement your own version of EDIT CHANGE. 
ISPF has been functionally stabilized and is effectively on life support. I 
would not expect any new features. Like it or not, IBM is investing in new 
technologies that run in shell environments.

What advantages does my package have over the PCRE2 REXX implementation on the 
CBT tape? I recently evaluated that version because Ze’ev Atlas is planning to 
discontinue support. Unfortunately, the REXX external function performs a 
STORAGE OBTAIN on every call, and the additional linkage overhead could become 
a performance issue.

The PCRE2 maintainer recently asked for feedback on Discord whether to continue 
supporting EBCDIC. I worked with him and helped fix several testing issues:

https://github.com/PCRE2Project/pcre2/commit/0d0ac3aa0fe2c91dc648f809a7aac78ebc57048b

The z/OS PCRE2 code is beginning to decay. Ze’ev is not familiar with building 
software in z/OS UNIX and does not use Git. As a result, he copied the entire 
PCRE2 code base into PDS data sets and builds it using JCL. That makes it very 
difficult to apply upstream fixes or track new releases.

I uploaded the contents of the CBT tape to GitHub. If anybody is interested in 
PCRE2 from COBOL or REXX then I encourage you to pick up from Ze’ev. He was 
soliciting for somebody to take the reins. 

https://github.com/daveyc/PCRE2-z-OS



> 
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
> עַם יִשְׂרָאֵל חַי
> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
> 
> 
> 
> 
> From: IBM Mainframe Discussion List on behalf of David Crayford
> Sent: Saturday, April 12, 2025 9:33 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ISPF EDIT CHANGE regex requirements?
> 
> 
> External Message: Use Caution
> 
> 
> My regex REXX API handles advanced captures. https://github.com/daveyc/RTK
> 
>> On 12 Apr 2025, at 15:09, salva  wrote:
>> 
>> Meanwhile, until IBM offers a better regexp approach (especially for
>> captures in replacements), I use a quick-and-dirty macro to:
>> 
>>  -
>> 
>>  Copy the current edit session to a /tmp file
>>  -
>> 
>>  Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
>>  -
>> 
>>  Copy ofile back to the current session edit
>> 
>> It has a lot of limitations (as does sed), and when it's not enough, my
>> next option is to download to Notepad++ via FTP. (Notepad++ can be "easily"
>> integrated with z/OS FTP).
>> 
>> Regards, salva.
>> 
>>> El vie, 11 abr 2025 a las 20:23, Seymour J Metz () escribió:
>>> 
>>> Has anybody submitted ISPF requirements for IEDIT CHANGE to support
>>> regexen beyond what POSIX requires? E.g.,
>>> 
>>>   \b word boundary
>>>   \d digit, equivalent to [0-9]
>>>   backreferencing
>>>   named captures
>>>   PCRE
>>>   referring to captures in replacement string
>>>   Unicode character classes
>>> 
>>> In particular, make it easy to do something like
>>> 
>>>   C R'/bR(\d+)\b' R'\($1\)'
>>> 
>>> --
>>> Shmuel (Seymour J.) Metz
>>> http://mason.gmu.edu/~smetz3
>>> עַם יִשְׂרָאֵל חַי
>>> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
>>> 
>>> 
>>> 
>>> --
>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>>> 
>> 
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> 
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Mike Schwab
Have you tried https://www.spflite.com/ , a windows program that edits on
your PC in EBCDIC then submits to the mainframe?

On Sat, Apr 12, 2025 at 5:01 PM Tom Brennan 
wrote:

> So I have an ISPF edit plug-in, where instead of the normal dataset
> edit, something else happens.  That something else starts up a "desktop
> display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a
> client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS
> activity, since ISPF can't handle those methods directly.  If that's all
> correct, what happens next, and why?
>
> On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
>-
> > Clearly, the Idea should b for ISPF to support Edit plug-ins.
> > These could use desktop displays by transports such as ssh,
> > sftp, X11, NFS, ...
> >
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Tom Brennan
So I have an ISPF edit plug-in, where instead of the normal dataset 
edit, something else happens.  That something else starts up a "desktop 
display" of ssh/sftp/X11/NFS, I assume by having that plug-in work as a 
client, talking to a server on my PC to handle the ssh/ssftp/X11/NFS 
activity, since ISPF can't handle those methods directly.  If that's all 
correct, what happens next, and why?


On 4/12/2025 1:22 PM, Paul Gilmartin wrote:
  -

Clearly, the Idea should b for ISPF to support Edit plug-ins.
These could use desktop displays by transports such as ssh,
sftp, X11, NFS, ...



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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Paul Gilmartin
On Sat, 12 Apr 2025 09:08:48 +0200, salva wrote:

>Meanwhile, until IBM offers a better regexp approach (especially for
>captures in replacements), I use a quick-and-dirty macro to:
>   -
Clearly, the Idea should b for ISPF to support Edit plug-ins.
These could use desktop displays by transports such as ssh,
sftp, X11, NFS, ...

>   Copy the current edit session to a /tmp file
>   -
>   Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
>   -
>   Copy ofile back to the current session edit
>
If line numbers matter, as they did for us  supporting customer facing
Assembler code, the process might:
o generate a patch with difff, ISRSUPC, ...
o Apply the patch line- y-line, maintaining ISPF stats.

-- 
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Seymour J Metz
TN3270 does not support what vim needs. Now if WSA were still a thing ...

IAC, if I used a PC editor it wouldn't be vim. Given a free hand, I'd look at 
emacs and Open Editor first. Or if they ever brought Tritus back from the dead, 
...

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of Paul Gilmartin
Sent: Friday, April 11, 2025 4:28 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:

>One could enter an IBM “Idea” for that I suppose, but I do not think that the 
>underlying C library regex routines support those features, so it might be a 
>heavy ask.
>
Might sed- like numbered captures be a lighter ask?

Or, empower ISPF to invoke vim as an alternate editor.


>From:  Seymour J Metz
>Sent: Friday, April 11, 2025 2:23 PM
>
>Has abybody submitted ISPF requirements for IEDIT CHANGE to support regexen 
>beyond what POSIX requires? E.g.,
>
>    \b word boundary
>    \d digit, equivalent to [0-9]
>    backreferencing
>    named captures
>    PCRE
>    referring to captures in replacement string
>    Unicode character classes
>
>In particular, make it easy to do something like
>
>    C R'/bR(\d+)\b' R'\($1\)'

--
gil

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




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Seymour J Metz
For personal stuff I have TSPF, which does allow the replacement string to have 
referbacks. For work I have a locked-down laptop and am only allowed to install 
what the IRS supports.

Does the IBM Open Editor for Z allow using refer-backs in replacements?

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of salva
Sent: Saturday, April 12, 2025 3:08 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


Meanwhile, until IBM offers a better regexp approach (especially for
captures in replacements), I use a quick-and-dirty macro to:

   -

   Copy the current edit session to a /tmp file
   -

   Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
   -

   Copy ofile back to the current session edit

It has a lot of limitations (as does sed), and when it's not enough, my
next option is to download to Notepad++ via FTP. (Notepad++ can be "easily"
integrated with z/OS FTP).

Regards, salva.

El vie, 11 abr 2025 a las 20:23, Seymour J Metz () escribió:

> Has anybody submitted ISPF requirements for IEDIT CHANGE to support
> regexen beyond what POSIX requires? E.g.,
>
> \b word boundary
> \d digit, equivalent to [0-9]
> backreferencing
> named captures
> PCRE
> referring to captures in replacement string
> Unicode character classes
>
> In particular, make it easy to do something like
>
> C R'/bR(\d+)\b' R'\($1\)'
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
> עַם יִשְׂרָאֵל חַי
> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
>
>
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

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




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Seymour J Metz
Useful in scripts, but it doesn't enhance ISPF EDIT CHANGE. What advantage does 
it have over PCRE2?

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




From: IBM Mainframe Discussion List on behalf of David Crayford
Sent: Saturday, April 12, 2025 9:33 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?


External Message: Use Caution


My regex REXX API handles advanced captures. https://github.com/daveyc/RTK

> On 12 Apr 2025, at 15:09, salva  wrote:
>
> Meanwhile, until IBM offers a better regexp approach (especially for
> captures in replacements), I use a quick-and-dirty macro to:
>
>   -
>
>   Copy the current edit session to a /tmp file
>   -
>
>   Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
>   -
>
>   Copy ofile back to the current session edit
>
> It has a lot of limitations (as does sed), and when it's not enough, my
> next option is to download to Notepad++ via FTP. (Notepad++ can be "easily"
> integrated with z/OS FTP).
>
> Regards, salva.
>
>> El vie, 11 abr 2025 a las 20:23, Seymour J Metz () escribió:
>>
>> Has anybody submitted ISPF requirements for IEDIT CHANGE to support
>> regexen beyond what POSIX requires? E.g.,
>>
>>\b word boundary
>>\d digit, equivalent to [0-9]
>>backreferencing
>>named captures
>>PCRE
>>referring to captures in replacement string
>>Unicode character classes
>>
>> In particular, make it easy to do something like
>>
>>C R'/bR(\d+)\b' R'\($1\)'
>>
>> --
>> Shmuel (Seymour J.) Metz
>> http://mason.gmu.edu/~smetz3
>> עַם יִשְׂרָאֵל חַי
>> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
>>
>>
>>
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>>
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

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



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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread Paul Gilmartin
On Fri, 11 Apr 2025 21:38:08 -0700, Tom Brennan  wrote:

>Since you mentioned X11 and DSFS maybe I don't understand the original
>question.
>
A while ago:

 On Fri, 11 Apr 2025 23:32:55 +, Frank Swarbrick wrote:
> How would vim execute in a TN3270 session?

I have a useful script on my desktop that opens an
xterm to edit a file with vi.  Vi has not only captures but
other useful things such as command substitution.
Yes, "You can write a macro to do each of those."
But why, when they already exist in another editor.

Rather, make my script an ISPF Edit line macro.
Does vi expect a UNIX directory structure?  That's
the problem that DSFS was created to address.

Hmmm... When on my desktop I "vi wombat", vi
creates a temporary lock file in the same directory,
".wombat.swp".  How might that play DSFS?  I'd
expect to find answers to such questions in the
DSFS User's Guide, if I could only find the DSFS
User's Guide.

-- 
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread David Crayford
My regex REXX API handles advanced captures. https://github.com/daveyc/RTK

> On 12 Apr 2025, at 15:09, salva  wrote:
> 
> Meanwhile, until IBM offers a better regexp approach (especially for
> captures in replacements), I use a quick-and-dirty macro to:
> 
>   -
> 
>   Copy the current edit session to a /tmp file
>   -
> 
>   Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
>   -
> 
>   Copy ofile back to the current session edit
> 
> It has a lot of limitations (as does sed), and when it's not enough, my
> next option is to download to Notepad++ via FTP. (Notepad++ can be "easily"
> integrated with z/OS FTP).
> 
> Regards, salva.
> 
>> El vie, 11 abr 2025 a las 20:23, Seymour J Metz () escribió:
>> 
>> Has anybody submitted ISPF requirements for IEDIT CHANGE to support
>> regexen beyond what POSIX requires? E.g.,
>> 
>>\b word boundary
>>\d digit, equivalent to [0-9]
>>backreferencing
>>named captures
>>PCRE
>>referring to captures in replacement string
>>Unicode character classes
>> 
>> In particular, make it easy to do something like
>> 
>>C R'/bR(\d+)\b' R'\($1\)'
>> 
>> --
>> Shmuel (Seymour J.) Metz
>> http://mason.gmu.edu/~smetz3
>> עַם יִשְׂרָאֵל חַי
>> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
>> 
>> 
>> 
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>> 
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-12 Thread salva
Meanwhile, until IBM offers a better regexp approach (especially for
captures in replacements), I use a quick-and-dirty macro to:

   -

   Copy the current edit session to a /tmp file
   -

   Call bpxwunix("sed -E '/from/to/g' ifile > ofile") ...
   -

   Copy ofile back to the current session edit

It has a lot of limitations (as does sed), and when it's not enough, my
next option is to download to Notepad++ via FTP. (Notepad++ can be "easily"
integrated with z/OS FTP).

Regards, salva.

El vie, 11 abr 2025 a las 20:23, Seymour J Metz () escribió:

> Has anybody submitted ISPF requirements for IEDIT CHANGE to support
> regexen beyond what POSIX requires? E.g.,
>
> \b word boundary
> \d digit, equivalent to [0-9]
> backreferencing
> named captures
> PCRE
> referring to captures in replacement string
> Unicode character classes
>
> In particular, make it easy to do something like
>
> C R'/bR(\d+)\b' R'\($1\)'
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
> עַם יִשְׂרָאֵל חַי
> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
>
>
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Tom Brennan
Since you mentioned X11 and DSFS maybe I don't understand the original 
question.


On 4/11/2025 7:24 PM, Paul Gilmartin wrote:

On Fri, 11 Apr 2025 18:41:57 -0700, Tom Brennan  wrote:


I read Frank's question as, "How do I get an editor that responds to a
character key press to work in an environment that has no such ability?"


X11?  DSFS?  Are you biased by the limitations of the 327X?
Where's the DSFS User's Guide?



On 4/11/2025 5:46 PM, Paul Gilmartin wrote:

On Fri, 11 Apr 2025 23:32:55 +, Frank Swarbrick wrote:


How would vim execute in a TN3270 session?


I've used REXX address SYSCALL under ISPF for other things.


From: Paul Gilmartin
Sent: Friday, April 11, 2025 2:28 PM
On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:


One could enter an IBM �Idea� for that I suppose, but I do not think that the 
underlying C library regex routines support those features, so it might be a 
heavy ask.


Might sed- like numbered captures be a lighter ask?

Or, empower ISPF to invoke vim as an alternate editor.



-- \
gil

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




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Paul Gilmartin
On Fri, 11 Apr 2025 18:41:57 -0700, Tom Brennan  wrote:

>I read Frank's question as, "How do I get an editor that responds to a
>character key press to work in an environment that has no such ability?"
>
X11?  DSFS?  Are you biased by the limitations of the 327X?
Where's the DSFS User's Guide?


>On 4/11/2025 5:46 PM, Paul Gilmartin wrote:
>> On Fri, 11 Apr 2025 23:32:55 +, Frank Swarbrick wrote:
>>
>>> How would vim execute in a TN3270 session?
>>>
>> I've used REXX address SYSCALL under ISPF for other things.
>>> 
>>> From: Paul Gilmartin
>>> Sent: Friday, April 11, 2025 2:28 PM
>>> On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:
>>>
 One could enter an IBM �Idea� for that I suppose, but I do not think that 
 the underlying C library regex routines support those features, so it 
 might be a heavy ask.

>>> Might sed- like numbered captures be a lighter ask?
>>>
>>> Or, empower ISPF to invoke vim as an alternate editor.


-- \
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Tom Brennan
I read Frank's question as, "How do I get an editor that responds to a 
character key press to work in an environment that has no such ability?"


On 4/11/2025 5:46 PM, Paul Gilmartin wrote:

On Fri, 11 Apr 2025 23:32:55 +, Frank Swarbrick wrote:


How would vim execute in a TN3270 session?


I've used REXX address SYSCALL under ISPF for other things.


From: Paul Gilmartin
Sent: Friday, April 11, 2025 2:28 PM
On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:


One could enter an IBM �Idea� for that I suppose, but I do not think that the 
underlying C library regex routines support those features, so it might be a 
heavy ask.


Might sed- like numbered captures be a lighter ask?

Or, empower ISPF to invoke vim as an alternate editor.




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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Paul Gilmartin
On Fri, 11 Apr 2025 23:32:55 +, Frank Swarbrick wrote:

>How would vim execute in a TN3270 session?
> 
I've used REXX address SYSCALL under ISPF for other things.
>
>From: Paul Gilmartin
>Sent: Friday, April 11, 2025 2:28 PM
>On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:
>
>>One could enter an IBM �Idea� for that I suppose, but I do not think that the 
>>underlying C library regex routines support those features, so it might be a 
>>heavy ask.
>>
>Might sed- like numbered captures be a lighter ask?
>
>Or, empower ISPF to invoke vim as an alternate editor.

-- 
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Frank Swarbrick
How would vim execute in a TN3270 session?


From: IBM Mainframe Discussion List on behalf of Paul Gilmartin
Sent: Friday, April 11, 2025 2:28 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ISPF EDIT CHANGE regex requirements?

On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:

>One could enter an IBM “Idea” for that I suppose, but I do not think that the 
>underlying C library regex routines support those features, so it might be a 
>heavy ask.
>
Might sed- like numbered captures be a lighter ask?

Or, empower ISPF to invoke vim as an alternate editor.


>From:  Seymour J Metz
>Sent: Friday, April 11, 2025 2:23 PM
>
>Has abybody submitted ISPF requirements for IEDIT CHANGE to support regexen 
>beyond what POSIX requires? E.g.,
>
>\b word boundary
>\d digit, equivalent to [0-9]
>backreferencing
>named captures
>PCRE
>referring to captures in replacement string
>Unicode character classes
>
>In particular, make it easy to do something like
>
>C R'/bR(\d+)\b' R'\($1\)'

--
gil

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

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Paul Gilmartin
On Fri, 11 Apr 2025 19:29:08 +, Farley, Peterrote:

>One could enter an IBM “Idea” for that I suppose, but I do not think that the 
>underlying C library regex routines support those features, so it might be a 
>heavy ask.
> 
Might sed- like numbered captures be a lighter ask?

Or, empower ISPF to invoke vim as an alternate editor.


>From:  Seymour J Metz
>Sent: Friday, April 11, 2025 2:23 PM
>
>Has abybody submitted ISPF requirements for IEDIT CHANGE to support regexen 
>beyond what POSIX requires? E.g.,
>
>\b word boundary
>\d digit, equivalent to [0-9]
>backreferencing
>named captures
>PCRE  
>referring to captures in replacement string
>Unicode character classes
>
>In particular, make it easy to do something like
>
>C R'/bR(\d+)\b' R'\($1\)'

-- 
gil

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


Re: ISPF EDIT CHANGE regex requirements?

2025-04-11 Thread Farley, Peter
One could enter an IBM “Idea” for that I suppose, but I do not think that the 
underlying C library regex routines support those features, so it might be a 
heavy ask.

Peter

From: IBM Mainframe Discussion List  On Behalf Of 
Seymour J Metz
Sent: Friday, April 11, 2025 2:23 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ISPF EDIT CHANGE regex requirements?

Has anybody submitted ISPF requirements for IEDIT CHANGE to support regexen 
beyond what POSIX requires? E.g.,

\b word boundary
\d digit, equivalent to [0-9]
backreferencing
named captures
PCRE  
referring to captures in replacement string
Unicode character classes

In particular, make it easy to do something like

C R'/bR(\d+)\b' R'\($1\)'

-- 

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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