<?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: Device Logicals Names in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287376#M15499</link>
    <description>Sorry to reply to my own post.&lt;BR /&gt;&lt;BR /&gt;I wrote FIXALL.COM between about 1986 and Jun 1991, not ca. 2000. &lt;BR /&gt;&lt;BR /&gt;Yeah, I should have fixed the comment about a "many files in a single directory" before I posted. Sorry. It should work fine with any file-spec that F$SEARCH is happy with.&lt;BR /&gt;&lt;BR /&gt;AEFAEF</description>
    <pubDate>Mon, 03 Nov 2008 22:24:28 GMT</pubDate>
    <dc:creator>AEFAEF</dc:creator>
    <dc:date>2008-11-03T22:24:28Z</dc:date>
    <item>
      <title>Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287370#M15493</link>
      <description>We are currently in the process of moving a Development cluster to SAN based storage.&lt;BR /&gt;&lt;BR /&gt;Current storage device names are like;&lt;BR /&gt;DSA1 = $1$DKA100 + $1$DKB200 + $1$DKC200&lt;BR /&gt;We have about 20 shadow sets.&lt;BR /&gt;&lt;BR /&gt;New storage will be like &lt;BR /&gt;DSA1= $1$DGA1010 + $1$DGA1020 + $1$DGA1030&lt;BR /&gt;&lt;BR /&gt;The server will not be about for long in the future.&lt;BR /&gt;The server is riddled with command files that reference device names and numbers i.e. Remove member DKC200 from shadow set , mount it , do a backup from it and remount into shadow set.&lt;BR /&gt;&lt;BR /&gt;I have done a quick and dirty fix of a &lt;BR /&gt;$DEFINE/SYS/EXEC/TRANS=(CONC,TERM) $1$DKC200 $1£DGA1030:&lt;BR /&gt;This seems to work ...but I have found that some command files reference the disk as _$1$DKC200: or _$1$DKC200  (Underscore at start of device name). This breaks my quick and ugly fix ...&lt;BR /&gt;&lt;BR /&gt;This a dev server and has been a sandpit for the last 5 years !&lt;BR /&gt;&lt;BR /&gt;Anyone have any ideas how I do a logical define to cope with the _ prior to device names ?&lt;BR /&gt;&lt;BR /&gt;Avoiding editing the dozens of cammand files of course.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2008 11:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287370#M15493</guid>
      <dc:creator>Kevin Raven (UK)</dc:creator>
      <dc:date>2008-10-15T11:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287371#M15494</link>
      <description>Raven,&lt;BR /&gt;&lt;BR /&gt;If the files are forcing the names, then there is little that can be done.&lt;BR /&gt;&lt;BR /&gt;If the names are explicit, then using SEARCH, GREP, PERL or other tools to identify the command files (and possibly automate the editing) might be an option [I have done this in similar situations in the past].&lt;BR /&gt;&lt;BR /&gt;I would also consider moving this using the techniques described in my presentation "Migrating OpenVMS Storage Environments without Interruption or Disruption" (slides available at &lt;A href="http://www.rlgsc.com/hptechnologyforum/2007/1512.html" target="_blank"&gt;http://www.rlgsc.com/hptechnologyforum/2007/1512.html&lt;/A&gt; ).&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>Wed, 15 Oct 2008 13:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287371#M15494</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-10-15T13:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287372#M15495</link>
      <description>Thanks for the quick reply.&lt;BR /&gt;&lt;BR /&gt;Yes it looks like we script something to search and make the changes in the numerous command files.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287372#M15495</guid>
      <dc:creator>Kevin Raven (UK)</dc:creator>
      <dc:date>2008-10-15T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287373#M15496</link>
      <description>As for the fix, add a couple of more logical names -- the classic leading underscore stuff does NOT work the way it once did; this notation has been "broken" since V4.0.  Put another way, add:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/SYS/EXEC/TRANS=(CONC,TERM) -&lt;BR /&gt;_$1$DKC200 $1$DGA1030:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/SYS/EXEC/TRANS=(CONC,TERM) -&lt;BR /&gt;__$1$DKC200 $1$DGA1030:&lt;BR /&gt;&lt;BR /&gt;I've also patched executables and data files to fix some of these cases; for what isn't accessible via logical name or editor or other and more reasonable means.&lt;BR /&gt;&lt;BR /&gt;And tools such as Perl can make short order of mass DCL changes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287373#M15496</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-15T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287374#M15497</link>
      <description>nb: One _ underscore gets removed when specified, so just keep adding them (in classic DCL fashion) until you get enough of them out front.</description>
      <pubDate>Wed, 15 Oct 2008 14:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287374#M15497</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-15T14:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287375#M15498</link>
      <description>You can also do en masse changes in DCL command procedures using DCL and EDT:&lt;BR /&gt;&lt;BR /&gt;*** Use at your own risk ***&lt;BR /&gt;&lt;BR /&gt;[Despite the comments (I wrote this thing ca. 2000), a quick check showed it works with the ... wildcard.]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$!+ FIXALL.COM&lt;BR /&gt;$!&lt;BR /&gt;$!   PURPOSE:  TO S/OLD/NEW/WH IN MANY FILES IN A SINGLE DIRECTORY&lt;BR /&gt;$!   P1 = FILE-SPEC (WILDCARDS OKAY)&lt;BR /&gt;$!&lt;BR /&gt;$!! Ask for file-spec:&lt;BR /&gt;$!&lt;BR /&gt;$   IF (P1 .EQS. "") THEN  $   INQUIRE P1 "_File-spec"&lt;BR /&gt;$_ASK_P2:&lt;BR /&gt;$   IF (P2 .EQS. "") THEN  $   INQUIRE P2 "_Old string"&lt;BR /&gt;$   IF (P2 .EQS. "") THEN  $   WRITE SYS$COMMAND "Null value not allowed. Try again:"&lt;BR /&gt;$   IF (P2 .EQS. "") THEN  $   GOTO _ASK_P2&lt;BR /&gt;$   IF (P3 .EQS. "") THEN  $   INQUIRE P3 "_New string"&lt;BR /&gt;$!&lt;BR /&gt;$!! Create the command file that will be run to do the editing:&lt;BR /&gt;$!&lt;BR /&gt;$   ON ERROR THEN GOTO LEAVE&lt;BR /&gt;$   ON CONTROL_Y THEN GOTO LEAVE&lt;BR /&gt;$   OPEN/WRITE FIX FIXALL.TMP&lt;BR /&gt;$   WRITE FIX "$   ON CONTROL_Y THEN STOP "&lt;BR /&gt;$   WRITE FIX "$   EDIT/EDT/NOCOMMAND 'P1' "&lt;BR /&gt;$   FIX_STRING = "S|" + P2 + "|" + P3 + "|WH"&lt;BR /&gt;$   WRITE FIX FIX_STRING&lt;BR /&gt;$   WRITE FIX "EXIT "&lt;BR /&gt;$   CLOSE FIX&lt;BR /&gt;$!&lt;BR /&gt;$!! Look for files:&lt;BR /&gt;$!&lt;BR /&gt;$FIX_FILE:&lt;BR /&gt;$!&lt;BR /&gt;$   FILE = F$SEARCH(P1)&lt;BR /&gt;$   SHOW SYMBOL FILE&lt;BR /&gt;$   IF (FILE .EQS. "") THEN  $   GOTO EXIT&lt;BR /&gt;$!&lt;BR /&gt;$!! Run the command file we just made, but do not alter it or directory files!&lt;BR /&gt;$!&lt;BR /&gt;$   FILE_NAME = F$PARSE(FILE,,,"NAME")&lt;BR /&gt;$   FILE_TYPE = F$PARSE(FILE,,,"TYPE")&lt;BR /&gt;$   FILE_NT = FILE_NAME + FILE_TYPE&lt;BR /&gt;$   IF (FILE_NT .NES. "FIXALL.TMP" .AND. FILE_TYPE .NES. ".DIR") THEN  @FIXALL.TMP 'FILE'&lt;BR /&gt;$!&lt;BR /&gt;$!GO BACK TO THE TOP OF THE LOOP:&lt;BR /&gt;$   GOTO FIX_FILE&lt;BR /&gt;$!&lt;BR /&gt;$EXIT:&lt;BR /&gt;$   DELETE FIXALL.TMP;*&lt;BR /&gt;$   EXIT&lt;BR /&gt;$!&lt;BR /&gt;$LEAVE:&lt;BR /&gt;$   CLOSE FIX&lt;BR /&gt;$   STOP&lt;BR /&gt;$!&lt;BR /&gt;$!# END OF FIXALL.COM&lt;BR /&gt;&lt;BR /&gt;AEFAEF</description>
      <pubDate>Mon, 03 Nov 2008 21:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287375#M15498</guid>
      <dc:creator>AEFAEF</dc:creator>
      <dc:date>2008-11-03T21:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Device Logicals Names</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287376#M15499</link>
      <description>Sorry to reply to my own post.&lt;BR /&gt;&lt;BR /&gt;I wrote FIXALL.COM between about 1986 and Jun 1991, not ca. 2000. &lt;BR /&gt;&lt;BR /&gt;Yeah, I should have fixed the comment about a "many files in a single directory" before I posted. Sorry. It should work fine with any file-spec that F$SEARCH is happy with.&lt;BR /&gt;&lt;BR /&gt;AEFAEF</description>
      <pubDate>Mon, 03 Nov 2008 22:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/device-logicals-names/m-p/4287376#M15499</guid>
      <dc:creator>AEFAEF</dc:creator>
      <dc:date>2008-11-03T22:24:28Z</dc:date>
    </item>
  </channel>
</rss>

