[Info-vax] SET DEFAULT iterative logical name translation

alanfe...@gmail.com alanfeldman48 at gmail.com
Tue Oct 26 14:13:04 EDT 2021


On Tuesday, October 26, 2021 at 1:14:36 PM UTC-4, Dave Froble wrote:
> On 10/26/2021 5:49 AM, alanfe... at gmail.com wrote:
> > On Tuesday, October 26, 2021 at 4:52:38 AM UTC-4, Henry Crun wrote: 
> >> On 26/10/2021 8:49, Dave Froble wrote: 
> >>> On 10/25/2021 4:33 PM, Arne Vajhøj wrote: 
> >>>> On 10/25/2021 3:54 PM, Phillip Helbig (undress to reply) wrote: 
> >>>>> In article <sl6m42$4v0$1... at dont-email.me>, Stephen Hoffman 
> >>>>> <seao... at hoffmanlabs.invalid> writes: 
> >>>>>> EDT was long ago considered deprecated and ~immutable, and now it's 
> >>>>>> apparently not. 
> >>>>> 
> >>>>> Much faster than TPU: no cursor slow motion, doesn't read the whole 1-GB 
> >>>>> file if it just needs to change the top few lines. Probably easier to 
> >>>>> script and run in batch. 
> >>>> 
> >>>> EVE/TPU is actually very powerful for scripting. 
> >>>> 
> >>>> Arne 
> >>>> 
> >>> 
> >>> When I need to change "ABC" to "XYZ", EDT is very useful ... 
> >>> 
> >> But when you want to replace "ABC" with "XYZ" in every line containing "UVW" you need TPU "Learn" capability 
> >> 
> > 
> > Nope. EDT can do it! (ED is EDIT/EDT/.) 
> > 
> > $ ED B.B 
> > 1 ABC 
> > *TYPE WH 
> > 1 ABC 
> > 2 ABC UVW 
> > 3 ABC 
> > 4 ABC UVW 
> > 5 ABC UVW 
> > 6 ABC 
> > [EOB] 
> > *S/ABC/XYZ/ ALL 'UVW' 
> > 2 XYZ UVW 
> > 4 XYZ UVW 
> > 5 XYZ UVW 
> > 3 substitutions 
> > *TYPE WH 
> > 1 ABC 
> > 2 XYZ UVW 
> > 3 ABC 
> > 4 XYZ UVW 
> > 5 XYZ UVW 
> > 6 ABC 
> > [EOB] 
> > *
> Very nice !!! 
> 
> That specific capability is something that I've personally never run into. 
> 
> When working on a program, which is my main usage of editors, I'm very careful 
> of what I'm doing. Mass substitutions can drive a stake through your heart 
> if not very specific about what's happening. Thus, I'm not a user of some advanced, 
> and even normal, capabilities.

I agree 100%. Blind mass substitution can be a disaster, esp. for short strings! I'm always careful when doing such things. Also, I don't think I ever needed this particular capability, but I know it exists, so I had to post it. 

One day at a remote lab, our experiment was done. As a lowly grad student, it was my job to make backup copies all the 9-track tapes we wrote our data to. Don't want to lose all that hard-gained data!!! We had the lab to ourselves for several days or maybe even a week or week and a half. Don't want all that long hard work to go to waste!!! 

Took about 10 min. to make a copy of each tape. So I thought I'd take the opportunity to catch up to everyone else on VMS. During each 10 min. interval I literally plowed through the DCL dictionary, and probably the User's manual and  the EDT manual, too. 

Again to all: If EDT is not up to your needs, sure, use whatever is. But those editors only get in my way. I am working on DCL scripts. Nothing terribly fancy. For this, EDT serves me well. All I am doing is sprucing up TO.COM (fixed a bug, too!) to resubmit the current version (a somewhat old one is there). And maybe check on other things.
 
My favorite thing about EDT is probably the way it does the key definitions.

Again, if anyone can find the release notes for fixing, or even the one describing the SET DEFAULT problem, please do post. (Was most likely the 6.0, 6.1, or 6.2 version of OpenVMS where the problem was described.)

> -- 
> David Froble Tel: 724-529-0450 
> Dave Froble Enterprises, Inc. E-Mail: da... at tsoft-inc.com 
> DFE Ultralights, Inc. 
> 170 Grimplin Road 
> Vanderbilt, PA 15486

AEF



More information about the Info-vax mailing list