<?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: Global replace for many command procedures...? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796011#M9766</link>
    <description>Personal I use 2 com files: one searches for a particular string that needs to be changed, and one to do the actual change.&lt;BR /&gt;It shows the string found, and you can say yes or no to change that file; afterwards a difference is shown.&lt;BR /&gt;Edit/edt or TECO is used to do the actual change; TECO sometimes needs a temporary files to do so.&lt;BR /&gt;&lt;BR /&gt;Change_all_files.com&lt;BR /&gt;$! VERANDER ALLE FILES&lt;BR /&gt;$LOOP:&lt;BR /&gt;$ FILE=F$SEARCH("''P1'",3)&lt;BR /&gt;$ IF "''FILE'" .EQS. "" THEN $ EXIT&lt;BR /&gt;$ NAME=F$PARSE(FILE,".COM","","name")&lt;BR /&gt;$ F_TYPE=F$PARSE(FILE,".COM","","TYPE")&lt;BR /&gt;$ F_dir=F$PARSE(FILE,".COM","","DIRECTORY")&lt;BR /&gt;$ F_device=F$PARSE(FILE,".COM","","Device")&lt;BR /&gt;$ write sys$output name,F_TYPE&lt;BR /&gt;$ zoek_string="check_devices.com"&lt;BR /&gt;$ if "''p2'" .nes. "" then $ zoek_string="''p2'"&lt;BR /&gt;$ SEA 'f_device''f_dir''NAME''F_TYPE' "''zoek_string'"&lt;BR /&gt;$ ERROR_CODE :== '$STATUS'&lt;BR /&gt;$ IF ERROR_CODE .EQS. "%X08D78053" THEN GOTO LOOP&lt;BR /&gt;$ if f$extract(0,6,name) .eqs. "CHANGE" then goto loop&lt;BR /&gt;$ INQUIRE ANS "Moet file ''f_device'''f_dir'''NAME'''F_TYPE' gedaan worden N/[J]&lt;BR /&gt;?"&lt;BR /&gt;$ IF ANS .EQS. "N" THEN GOTO LOOP&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$@sys$login:CHANGE_FILES 'f_device''f_dir''NAME''F_TYPE'&lt;BR /&gt;$ GOTO LOOP&lt;BR /&gt;----------------------------------&lt;BR /&gt;change_files.com&lt;BR /&gt;*ht$$&lt;BR /&gt;$! COMMAND FILES OM backup COM FILES TE UPDATEN met de laatste check_devices&lt;BR /&gt;$ FILE="''P1'"&lt;BR /&gt;$! maak de .tec file om uit te voeren&lt;BR /&gt;$ open /write file update_backups.tec&lt;BR /&gt;$ write file "eb''file'$"&lt;BR /&gt;$ write file "a$"&lt;BR /&gt;$ write file "ncheck_devices.com$0l$"&lt;BR /&gt;$ write file ".,zk$ercheck_devices.com$"&lt;BR /&gt;$ write file "ex$$"&lt;BR /&gt;$ close file&lt;BR /&gt;$! teco = "edit\/teco"&lt;BR /&gt;$! teco /execute=update_backups.tec&lt;BR /&gt;$! of de bovenste of de onderste twee commando's uitvoeren&lt;BR /&gt;$! ASSIGN SYS$COMMAND SYS$INPUT&lt;BR /&gt;$ edit/edt 'file'&lt;BR /&gt;s/RECOVERY_DATA-/RECOVERY_DATA -/wh&lt;BR /&gt;exit&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$ TEST_1=F$SEARCH("''FILE';-1")&lt;BR /&gt;$ SET ON&lt;BR /&gt;$ IF "''TEST_1'" .NES. "" THEN $ DIF 'FILE'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 30 May 2006 06:44:56 GMT</pubDate>
    <dc:creator>Ruud Dijt</dc:creator>
    <dc:date>2006-05-30T06:44:56Z</dc:date>
    <item>
      <title>Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795995#M9750</link>
      <description>We have many command procedures, and we need to make a global modification in all of them (one particular string need be replaced by a different string). Is there an elegant method of accomplishing this without having to individually edit each and every one of them.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Chaim</description>
      <pubDate>Mon, 29 May 2006 03:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795995#M9750</guid>
      <dc:creator>ChaimBu</dc:creator>
      <dc:date>2006-05-29T03:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795996#M9751</link>
      <description>I normally take a buffer in EVE in which all files are listed that need modif. Then I use LEARN to get the file, do the change and save it. Then replay it "number of files" times. &lt;BR /&gt;&lt;BR /&gt;Very handy since any edit session can be done (but keep in mind that the edits must be applicable to all source files). If it goes wrong, delete/sin will save you.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 29 May 2006 03:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795996#M9751</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-05-29T03:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795997#M9752</link>
      <description>HP engineering has released the FIND kit (via freeware V7.0, see VMS site). Beside just FIND it has also FIND/REPLACE, which works quite well (incl. regular expressions).&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Mon, 29 May 2006 03:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795997#M9752</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-05-29T03:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795998#M9753</link>
      <description>Kalle,&lt;BR /&gt;&lt;BR /&gt;Could you please place a link to the VMS site as I am not yet familiar with this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Chaim</description>
      <pubDate>Mon, 29 May 2006 04:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795998#M9753</guid>
      <dc:creator>ChaimBu</dc:creator>
      <dc:date>2006-05-29T04:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795999#M9754</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;here it is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/freeware/freeware70/find/" target="_blank"&gt;http://h71000.www7.hp.com/freeware/freeware70/find/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Mon, 29 May 2006 04:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3795999#M9754</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-05-29T04:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796000#M9755</link>
      <description>Kalle,&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Please excuse my "ignorance". I downloaded this to my PC. WHat is this file? How do I use it on the VMS system?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Chaim&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 04:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796000#M9755</guid>
      <dc:creator>ChaimBu</dc:creator>
      <dc:date>2006-05-29T04:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796001#M9756</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;this is a kitfile for the PCSI utility on VMS. The PCSI Utility (Commandverb PRODUCT) is used to install, reconfigure... software products on VMS. It replaced the older VMSINSTAL DCL-procedure. The doc-set contains more information about PCSI.&lt;BR /&gt;&lt;BR /&gt;You should transfer this file onto your VMS system in binary mode. To install the FIND utility pls. issue:&lt;BR /&gt;&lt;BR /&gt;$ PRODUCT INSTALL FIND&lt;BR /&gt;&lt;BR /&gt;and answer any questions. This will install the FIND utility onto the default destination&lt;BR /&gt;SYS$COMMON.&lt;BR /&gt;&lt;BR /&gt;If the file attributes have been corrupted during transfer, you may repair them with&lt;BR /&gt;$ SET FILE &lt;NAME of="" kit=""&gt;/ATT=(RFM=FIX,LRL=512,MRS=512)&lt;BR /&gt;&lt;BR /&gt;regards Kalle&lt;/NAME&gt;</description>
      <pubDate>Mon, 29 May 2006 06:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796001#M9756</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-05-29T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796002#M9757</link>
      <description>.PCSI$COMPRESSED files are distributions for the PCSI utility, THE PRODUCT command.&lt;BR /&gt;&lt;BR /&gt;To install the software, use the command &lt;BR /&gt;  PRODUCT INSTALL FIND&lt;BR /&gt;See HELP PRODUCT for /SOURCE and /DESTINATION switches.&lt;BR /&gt;&lt;BR /&gt;The file must have been transferred in BINARY mode (by HTTP download or FTP IMAGE mode).</description>
      <pubDate>Mon, 29 May 2006 06:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796002#M9757</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-05-29T06:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796003#M9758</link>
      <description>A global replace command using no extra program , but EDIT/EDT came from Ph.Helbig once upon a time, I edited a bit, here it is:&lt;BR /&gt;&lt;BR /&gt;  &lt;A href="http://wwwvms.mppmu.mpg.de/util_root/com/gsr.com" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/util_root/com/gsr.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 09:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796003#M9758</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-05-29T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796004#M9759</link>
      <description>&lt;BR /&gt;So many solutions...&lt;BR /&gt;&lt;BR /&gt;Using basic DCL scripting it could be done as:&lt;BR /&gt;&lt;BR /&gt;------- edit_many.com -------&lt;BR /&gt;$ if p1.eqs."" then exit&lt;BR /&gt;$ wildcard_removed = p1 - "*" - "%"&lt;BR /&gt;$ loop:&lt;BR /&gt;$ file = f$searc(p1)&lt;BR /&gt;$ if file.eqs."" then exit&lt;BR /&gt;$ editx/edt/com=sys$input: 'file&lt;BR /&gt;s/noot/aap/%wh&lt;BR /&gt;exit&lt;BR /&gt;$ if p1.nes.wildcard_removed then goto loop&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Personally I would grab perl, mostly because I never bothered to learn tpu.&lt;BR /&gt;&lt;BR /&gt;I find that the regular expressions in perl are so much more desirabel to find just the right strings to replace.&lt;BR /&gt;&lt;BR /&gt;Here is a perl 'one liner' for the same edit:&lt;BR /&gt;&lt;BR /&gt;$ perl -p -i -e "s/old-text/new-text/g" %.tmp&lt;BR /&gt;&lt;BR /&gt;-p = 'print after loop" : loop over input file stashing into default variable $_, print $_ to sys$ouput after executing perl program over each line.&lt;BR /&gt;&lt;BR /&gt;-i = 'inplace' : output to same name as input&lt;BR /&gt;&lt;BR /&gt;-e = 'execute this' : program text follows&lt;BR /&gt;&lt;BR /&gt;s/x/y/g : no variable listed -&amp;gt; operate on $_, s = substitute, g = all matches on line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 09:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796004#M9759</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-05-29T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796005#M9760</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;I have always used (a variation of) Hein's DCL. It's quick, it's easy, it's foolproof.&lt;BR /&gt;&lt;BR /&gt;One note of caution: please make sure of a good to-be-replaced string.&lt;BR /&gt;You will NOT want to replace some substring that happens to match!&lt;BR /&gt;&lt;BR /&gt;If you want to make sure, extend the DCL with a DIFF/OUTP=&lt;IN some="" new="" tmp="" dir=""&gt; after each EDIT(default: the highest 2 existing versions are compared)  &lt;BR /&gt;Scan the DIFF output files for any UNintended changes (expect none or very few of those).&lt;BR /&gt;&lt;BR /&gt;Success.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;/IN&gt;</description>
      <pubDate>Mon, 29 May 2006 12:05:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796005#M9760</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-05-29T12:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796006#M9761</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;  Before you embark on editing, think about what you're changing and why. There may be a mechanism that means you don't need to modify any code, OR, if you must change code, you may be able to do it in such a way that future changes are much simpler.&lt;BR /&gt;&lt;BR /&gt;  Is the string a command (can be redefined as a symbol) or file name (might be possible to redefine as a logical name)? &lt;BR /&gt;&lt;BR /&gt;  If it's something that DCL won't automatically substitute, you may be able to code it so there's a manual substitution. Maybe something like this?&lt;BR /&gt;&lt;BR /&gt;$ ChaimString=F$TRNLNM("ChaimStringValue")&lt;BR /&gt;$ IF ChaimString.EQS."" THEN ChaimString="DefaultValue"&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;$ COMMAND 'ChaimString'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now you can change the string value by defining the logical name ChaimStringValue.</description>
      <pubDate>Mon, 29 May 2006 20:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796006#M9761</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-05-29T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796007#M9762</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;I assume that the perl command assumes that there is perl on the VMS system. In our case, we do NOT have perl.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Chaim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 23:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796007#M9762</guid>
      <dc:creator>ChaimBu</dc:creator>
      <dc:date>2006-05-29T23:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796008#M9763</link>
      <description>Hey... you started it. You wrote 'elegant' &lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;Perl is not the answer to everything, but it can make system managers and system programmer much more efficient. &lt;BR /&gt;For VMS based folks perl is also a great way to make themselves more valuable for non-VMS tasks (Unix, Windoze,...)&lt;BR /&gt;&lt;BR /&gt;At this point each VMS system should have Perl installed IMHO (and DFU also :-).&lt;BR /&gt;&lt;BR /&gt;btw... if I did write a dcl script, or a perl soltuion, I woudl probably first test whether the string is present before creating a fresh version with no changes.&lt;BR /&gt;In may example that could look like:&lt;BR /&gt;&lt;BR /&gt;$ if p1.eqs."" then exit&lt;BR /&gt;$ wild = p1 - "*" - "%"&lt;BR /&gt;$ loop:&lt;BR /&gt;$ file = f$searc(p1)&lt;BR /&gt;$ if file.eqs."" then exit&lt;BR /&gt;$ search/nowarn/noout  'file noot&lt;BR /&gt;$ if $severity.eq.3 then goto skip_edit&lt;BR /&gt;$ editx/edt/com=sys$input: 'file&lt;BR /&gt;s/noot/aap/%wh&lt;BR /&gt;exit&lt;BR /&gt;$skip_edit:&lt;BR /&gt;$ if p1.nes.wild then goto loop&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2006 23:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796008#M9763</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-05-29T23:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796009#M9764</link>
      <description>Similar command procedure (attached) that we've used for years.&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 May 2006 03:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796009#M9764</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2006-05-30T03:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796010#M9765</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;Personally, I use the TECO editor, which can be programmed to iterate through one or more directories, performing each change globally within a file.&lt;BR /&gt;&lt;BR /&gt;The advantage of TECO, which is admittedly cryptic (unless one is used to its syntax) is that it comes as part of the base OpenVMS distribution kit on all versions of OpenVMS. Thus, it is useable without worrying about installing additional software.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Tue, 30 May 2006 05:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796010#M9765</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-05-30T05:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796011#M9766</link>
      <description>Personal I use 2 com files: one searches for a particular string that needs to be changed, and one to do the actual change.&lt;BR /&gt;It shows the string found, and you can say yes or no to change that file; afterwards a difference is shown.&lt;BR /&gt;Edit/edt or TECO is used to do the actual change; TECO sometimes needs a temporary files to do so.&lt;BR /&gt;&lt;BR /&gt;Change_all_files.com&lt;BR /&gt;$! VERANDER ALLE FILES&lt;BR /&gt;$LOOP:&lt;BR /&gt;$ FILE=F$SEARCH("''P1'",3)&lt;BR /&gt;$ IF "''FILE'" .EQS. "" THEN $ EXIT&lt;BR /&gt;$ NAME=F$PARSE(FILE,".COM","","name")&lt;BR /&gt;$ F_TYPE=F$PARSE(FILE,".COM","","TYPE")&lt;BR /&gt;$ F_dir=F$PARSE(FILE,".COM","","DIRECTORY")&lt;BR /&gt;$ F_device=F$PARSE(FILE,".COM","","Device")&lt;BR /&gt;$ write sys$output name,F_TYPE&lt;BR /&gt;$ zoek_string="check_devices.com"&lt;BR /&gt;$ if "''p2'" .nes. "" then $ zoek_string="''p2'"&lt;BR /&gt;$ SEA 'f_device''f_dir''NAME''F_TYPE' "''zoek_string'"&lt;BR /&gt;$ ERROR_CODE :== '$STATUS'&lt;BR /&gt;$ IF ERROR_CODE .EQS. "%X08D78053" THEN GOTO LOOP&lt;BR /&gt;$ if f$extract(0,6,name) .eqs. "CHANGE" then goto loop&lt;BR /&gt;$ INQUIRE ANS "Moet file ''f_device'''f_dir'''NAME'''F_TYPE' gedaan worden N/[J]&lt;BR /&gt;?"&lt;BR /&gt;$ IF ANS .EQS. "N" THEN GOTO LOOP&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$@sys$login:CHANGE_FILES 'f_device''f_dir''NAME''F_TYPE'&lt;BR /&gt;$ GOTO LOOP&lt;BR /&gt;----------------------------------&lt;BR /&gt;change_files.com&lt;BR /&gt;*ht$$&lt;BR /&gt;$! COMMAND FILES OM backup COM FILES TE UPDATEN met de laatste check_devices&lt;BR /&gt;$ FILE="''P1'"&lt;BR /&gt;$! maak de .tec file om uit te voeren&lt;BR /&gt;$ open /write file update_backups.tec&lt;BR /&gt;$ write file "eb''file'$"&lt;BR /&gt;$ write file "a$"&lt;BR /&gt;$ write file "ncheck_devices.com$0l$"&lt;BR /&gt;$ write file ".,zk$ercheck_devices.com$"&lt;BR /&gt;$ write file "ex$$"&lt;BR /&gt;$ close file&lt;BR /&gt;$! teco = "edit\/teco"&lt;BR /&gt;$! teco /execute=update_backups.tec&lt;BR /&gt;$! of de bovenste of de onderste twee commando's uitvoeren&lt;BR /&gt;$! ASSIGN SYS$COMMAND SYS$INPUT&lt;BR /&gt;$ edit/edt 'file'&lt;BR /&gt;s/RECOVERY_DATA-/RECOVERY_DATA -/wh&lt;BR /&gt;exit&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$ TEST_1=F$SEARCH("''FILE';-1")&lt;BR /&gt;$ SET ON&lt;BR /&gt;$ IF "''TEST_1'" .NES. "" THEN $ DIF 'FILE'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 May 2006 06:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796011#M9766</guid>
      <dc:creator>Ruud Dijt</dc:creator>
      <dc:date>2006-05-30T06:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796012#M9767</link>
      <description>Just in case you don't yet have enough  solutions, here is a command procedure that may be useful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dcl.openvms.org/search.php?query=sars&amp;amp;what=stories&amp;amp;limit=100" target="_blank"&gt;http://dcl.openvms.org/search.php?query=sars&amp;amp;what=stories&amp;amp;limit=100&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 May 2006 08:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796012#M9767</guid>
      <dc:creator>Peter Barkas</dc:creator>
      <dc:date>2006-05-31T08:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796013#M9768</link>
      <description>Chaim,&lt;BR /&gt;&lt;BR /&gt;just to add my .05 Cent (Euro): We're using the attached piece of TPU-Programming for years.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Bernd</description>
      <pubDate>Wed, 31 May 2006 09:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796013#M9768</guid>
      <dc:creator>Bernd Fischer_3</dc:creator>
      <dc:date>2006-05-31T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Global replace for many command procedures...?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796014#M9769</link>
      <description>Bernd,&lt;BR /&gt;&lt;BR /&gt;Please re-reply with the attachment renamed to ".txt"&lt;BR /&gt;&lt;BR /&gt;This silly Internet Exploder comes back with&lt;BR /&gt;"To help protect your security, Internet Explorer blocked this site from downloading files to your computer...."&lt;BR /&gt;&lt;BR /&gt;Now you and I know that's a crock, but I guess we'll just have to play the game and mis-label the data, no matter how much I hate that.&lt;BR /&gt;[See my rant earlier today in:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1031169" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1031169&lt;/A&gt;&lt;BR /&gt;:^]&lt;BR /&gt;</description>
      <pubDate>Wed, 31 May 2006 10:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/global-replace-for-many-command-procedures/m-p/3796014#M9769</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-05-31T10:58:27Z</dc:date>
    </item>
  </channel>
</rss>

