- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- EDT and string size in the substitute command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 08:50 AM
тАО09-04-2007 08:50 AM
EDT and string size in the substitute command
*sub/old_string/very-very-long-string/whole
gives "Invalid string" when the line is probably around 80 chars long or longer (I did not counted the characters - just a guestimate). It worked OK when I shortened teh string while playing with it.
Is there anyway to make it work with longer strings?
Thanks,
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 10:56 AM
тАО09-04-2007 10:56 AM
Re: EDT and string size in the substitute command
As John Gillings said in a another thread, EDT is frozen, and won't be fixed.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1148390
EDT has some other limitations, for example 255 characters per line.
That being said, I still use EDT for a lot of things, but use EVE as well.
The corresponding command to EDT's s/string1/string2/wh in EVE is global replace.
Is there some reason you can't use EVE for this task?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 03:39 PM
тАО09-04-2007 03:39 PM
Re: EDT and string size in the substitute command
Just a guess after reading...
EDT$$T_SUB_STR : BLOCK [CH$ALLOCATION (64)], ! Last SUBSTITUTE string.
:-).
Now personally I find it rather inconvenient to type in substitute string over say 39 bytes.
Anything larger for me is often a cut&paste job or automated procedure.
So... what problem are you really trying to solve here? What made you pick EDT as the weapon of choice? Might we suggest an alternative?
Where does the data come from, where is it going? Approxiamate volume (thousands, millions or billions or records?)
Any performance requirements ?
Any resource restrictions (memory, disk)?
note: More and more precise info will often lead to better answers. But tell us too much and it will look like work and we'll skip it or send you qoute :-).
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 04:51 AM
тАО09-05-2007 04:51 AM
Re: EDT and string size in the substitute command
And there are better editors around that maintain compatibility with your EDT finger memories; with the keypad commands. EVE has an EDT keypad mode, as does LSE.
EDT is, um, the software equivalent of a zombie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 05:10 AM
тАО09-05-2007 05:10 AM
Re: EDT and string size in the substitute command
"automated procedure"
Many years ago I wrote a global editing procedure that invokes EDT to do global substitutions (of all
It is nothing fancy but it is EDT/DCL based. and I call it for all different reasons, passing into the old and the new strings through DCL P-parameters. I many situation it help me a lot to do massive edits in a second.
It worked OK for short strings but it just didn't do the job for a large
I though it would be just a "SET
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2007 11:41 AM
тАО09-05-2007 11:41 AM
Re: EDT and string size in the substitute command
>Maybe it's time for another DCL adventure
Yes, you'd be better off doing this with TPU. Here's a start:
GLOBSUBS.COM
$ IF p1.EQS."" THEN INQUIRE p1 "Filespec"
$ IF p1.EQS."" THEN EXIT
$ IF p2.EQS."" THEN INQUIRE p2 "Search string"
$ IF p2.EQS."" THEN EXIT
$ IF p3.EQS."" THEN INQUIRE p3 "Substitute string"
$ lf=""
$ wo="WRITE SYS$OUTPUT"
$ loop: f=F$SEARCH(p1)
$ IF f.NES."".AND.f.NES.lf
$ THEN
$ PIPE wo "eve_global_replace(""''p2'"",""''p3'"");exit;" | -
EDIT/TPU/NODISPLAY/COMMAND=SYS$PIPE 'f' > NL:
$ lf=f
$ GOTO loop
$ ENDIF
(cursory testing only, included as text attachment as well).
Remove the "> NL:" to see the informational output from TPU.
Obviously the lengths of the strings will be limited by DCL symbol and line lengths.