<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: EDT and string size in the substitute command in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065232#M13271</link>
    <description>It looks like you have discoved a case where TPU/EVE is better than EDT.&lt;BR /&gt;&lt;BR /&gt;As John Gillings said in a another thread, EDT is frozen, and won't be fixed.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1148390" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1148390&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;EDT has some other limitations, for example 255 characters per line.&lt;BR /&gt;&lt;BR /&gt;That being said, I still use EDT for a lot of things, but use EVE as well.&lt;BR /&gt;&lt;BR /&gt;The corresponding command to EDT's s/string1/string2/wh in EVE is global replace.&lt;BR /&gt;&lt;BR /&gt;Is there some reason you can't use EVE for this task?&lt;BR /&gt;&lt;BR /&gt;Jon</description>
    <pubDate>Tue, 04 Sep 2007 17:56:18 GMT</pubDate>
    <dc:creator>Jon Pinkley</dc:creator>
    <dc:date>2007-09-04T17:56:18Z</dc:date>
    <item>
      <title>EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065231#M13270</link>
      <description>It looks like EDT has a limit in the substitute command buffer (or maybe in other commands)&lt;BR /&gt;&lt;BR /&gt;*sub/old_string/very-very-long-string/whole&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;Is there anyway to make it work with longer strings?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;George</description>
      <pubDate>Tue, 04 Sep 2007 15:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065231#M13270</guid>
      <dc:creator>George Tjionas</dc:creator>
      <dc:date>2007-09-04T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065232#M13271</link>
      <description>It looks like you have discoved a case where TPU/EVE is better than EDT.&lt;BR /&gt;&lt;BR /&gt;As John Gillings said in a another thread, EDT is frozen, and won't be fixed.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1148390" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1148390&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;EDT has some other limitations, for example 255 characters per line.&lt;BR /&gt;&lt;BR /&gt;That being said, I still use EDT for a lot of things, but use EVE as well.&lt;BR /&gt;&lt;BR /&gt;The corresponding command to EDT's s/string1/string2/wh in EVE is global replace.&lt;BR /&gt;&lt;BR /&gt;Is there some reason you can't use EVE for this task?&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Tue, 04 Sep 2007 17:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065232#M13271</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-09-04T17:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065233#M13272</link>
      <description>I think the limit it 64 bytes&lt;BR /&gt;&lt;BR /&gt;Just a guess after reading...&lt;BR /&gt;EDT$$T_SUB_STR : BLOCK [CH$ALLOCATION (64)], ! Last SUBSTITUTE string.&lt;BR /&gt;&lt;BR /&gt;:-).&lt;BR /&gt;&lt;BR /&gt;Now personally I find it rather inconvenient to type in substitute string over say 39 bytes.&lt;BR /&gt;Anything larger for me is often a cut&amp;amp;paste job or automated procedure.&lt;BR /&gt;&lt;BR /&gt;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? &lt;BR /&gt;Where does the data come from, where is it going? Approxiamate volume (thousands, millions or billions or records?)&lt;BR /&gt;Any performance requirements ?&lt;BR /&gt;Any resource restrictions (memory, disk)?&lt;BR /&gt;&lt;BR /&gt;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 :-).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2007 22:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065233#M13272</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-04T22:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065234#M13273</link>
      <description>perl and gawk and other text-oriented tools are typically massively superior to any sort of heavy text processing using EDT or similar vintage editor.   (Even SUM/SLP or brute-force DCL can be preferable.)  &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;EDT is, um, the software equivalent of a zombie.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:51:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065234#M13273</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-09-05T11:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065235#M13274</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;"automated procedure"&lt;BR /&gt;&lt;BR /&gt;Many years ago I wrote a global editing procedure that invokes EDT to do global substitutions (of all &lt;OLD_STRING&gt;s in a file or in many wild*card files).&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;It worked OK for short strings but it just didn't do the job for a large &lt;NEW_STRING&gt; value in the substitute command. &lt;BR /&gt;&lt;BR /&gt;I though it would be just a "SET &lt;SOMETHING&gt; to increase the length but I get the feeling that's not a possible workaround. Maybe it's time for another DCL adventure or someone else's work already available. &lt;BR /&gt;&lt;BR /&gt;George&lt;/SOMETHING&gt;&lt;/NEW_STRING&gt;&lt;/OLD_STRING&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065235#M13274</guid>
      <dc:creator>George Tjionas</dc:creator>
      <dc:date>2007-09-05T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: EDT and string size in the substitute command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065236#M13275</link>
      <description>George,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Maybe it's time for another DCL adventure&lt;BR /&gt;&lt;BR /&gt;  Yes, you'd be better off doing this with TPU. Here's a start:&lt;BR /&gt;&lt;BR /&gt;GLOBSUBS.COM&lt;BR /&gt;$ IF p1.EQS."" THEN INQUIRE p1 "Filespec"&lt;BR /&gt;$ IF p1.EQS."" THEN EXIT&lt;BR /&gt;$ IF p2.EQS."" THEN INQUIRE p2 "Search string"&lt;BR /&gt;$ IF p2.EQS."" THEN EXIT&lt;BR /&gt;$ IF p3.EQS."" THEN INQUIRE p3 "Substitute string"&lt;BR /&gt;$ lf=""&lt;BR /&gt;$ wo="WRITE SYS$OUTPUT"&lt;BR /&gt;$ loop: f=F$SEARCH(p1)&lt;BR /&gt;$ IF f.NES."".AND.f.NES.lf&lt;BR /&gt;$ THEN&lt;BR /&gt;$   PIPE wo "eve_global_replace(""''p2'"",""''p3'"");exit;" | -&lt;BR /&gt;   EDIT/TPU/NODISPLAY/COMMAND=SYS$PIPE 'f'  &amp;gt; NL:&lt;BR /&gt;$   lf=f&lt;BR /&gt;$   GOTO loop&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;(cursory testing only, included as text attachment as well).&lt;BR /&gt;Remove the "&amp;gt; NL:" to see the informational output from TPU. &lt;BR /&gt;&lt;BR /&gt;Obviously the lengths of the strings will be limited by DCL symbol and line lengths.</description>
      <pubDate>Wed, 05 Sep 2007 18:41:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edt-and-string-size-in-the-substitute-command/m-p/4065236#M13275</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-09-05T18:41:26Z</dc:date>
    </item>
  </channel>
</rss>

