No, I'm saying that I know what the CHANGE command does. Did the OP say that 
the relevant lines are contiguous?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Jeremy Nicoll <[email protected]>
Sent: Wednesday, October 7, 2020 7:34 PM
To: [email protected]
Subject: Re: dataset allocation

On Wed, 7 Oct 2020, at 19:37, Seymour J Metz wrote:
> Using global change command would work in, e.g., SuperWylbur, but the
> change command in ISPF doesn't have the requisite functionality.

Are you saying you know what the macro (that Wayne referred to) does?

It's been a long time since I wrote any edit macros, but a quick peek at one
of those that I have a copy of shows that (to make a specific change to all
of a subset of lines) I typically used

- a find command to find the first line of the subset (or something just
 before it), which I then labelled

- a find command to find the final line of the subset (or something just
  after it), which I then labelled

- a change command along the lines of

   change " one thing" "to another thing" .first  .final all


The point with this is that the searches for the first/final lines are done
by the editor, not by the macro's own logic, and the change command
likewise.


--
Jeremy Nicoll - my opinions are my own.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to