<?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: Translating Logical Name in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955268#M33355</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the logical name LNM$FILE_DEV in table LNM$SYSTEM_DIRECTORY holds the table names that get searched.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Martin</description>
    <pubDate>Thu, 26 Jan 2006 07:40:09 GMT</pubDate>
    <dc:creator>Martin Vorlaender</dc:creator>
    <dc:date>2006-01-26T07:40:09Z</dc:date>
    <item>
      <title>Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955266#M33353</link>
      <description>I want to access a logical name value within a (Fortran) program -- I can do this with a call to SYS$TRNLNM but I have to specify a specific table or a list in which to look it up.&lt;BR /&gt;&lt;BR /&gt;I'd like to use the same translation mechanism as DCL does (default: process, job, group, system). Is there an easy way to do this?&lt;BR /&gt;&lt;BR /&gt;I'd like this to work on fairly old versions of VMS (7.1 on...)</description>
      <pubDate>Thu, 26 Jan 2006 07:16:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955266#M33353</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-01-26T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955267#M33354</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use lib$get_logical.&lt;BR /&gt;(See help rtl lib$)&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Marc</description>
      <pubDate>Thu, 26 Jan 2006 07:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955267#M33354</guid>
      <dc:creator>Marc Van den Broeck</dc:creator>
      <dc:date>2006-01-26T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955268#M33355</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the logical name LNM$FILE_DEV in table LNM$SYSTEM_DIRECTORY holds the table names that get searched.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Martin</description>
      <pubDate>Thu, 26 Jan 2006 07:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955268#M33355</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-01-26T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955269#M33356</link>
      <description>Barry,&lt;BR /&gt;&lt;BR /&gt;To begin with: Welcome to the VMS forum!&lt;BR /&gt;&lt;BR /&gt;Martin just about described the answer, but to put it in the phrasing of your question:&lt;BR /&gt;&lt;BR /&gt;Use LNM$FILE_DEV as the table, and you and up with the same translation that VMS presents to $TRNLNM (and its derivatives).&lt;BR /&gt;This way you also take in account any redefines that might be in effect.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 26 Jan 2006 07:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955269#M33356</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-01-26T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955270#M33357</link>
      <description>Barry,&lt;BR /&gt;&lt;BR /&gt;To my recollection (without a set of V5.0 manuals handy), SYS$TRNLNM has not changed significantly over the entire time.&lt;BR /&gt;&lt;BR /&gt;On the translation side, the additon of cluster logical names was done by expanding the definition of LNM$SYSTEM to embrace the cluster-wide table (LNM$SYSTEM, the name for the System Logical name table, is used in LNM$FILE_DEV).&lt;BR /&gt;&lt;BR /&gt;You can display the contents of the default LNM$FILE_DEV with the command:&lt;BR /&gt;SHOW LOGICAL LNM$FILE_DEV/TABLE=LNM$SYSTEM_DIRECTORY&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>Thu, 26 Jan 2006 09:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955270#M33357</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-01-26T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955271#M33358</link>
      <description>The DCL SHOW LOGICAL command uses the list of logical name tables defined by the logical name LNM$DCL_LOGICAL. This is usually LNM$FILE_DEV which is the list of logical name tables used by RMS when processing file specifications.&lt;BR /&gt;&lt;BR /&gt;Both of these are defined in LNM$SYSTEM_DIRECTORY which is a logical name table containing names of logical name tables which are shared.&lt;BR /&gt;&lt;BR /&gt;The names of process local logical name tables are held in LNM$PROCESS_DIRECTORY.&lt;BR /&gt;&lt;BR /&gt;So the answer to your question is specify LNM$DCL_ TABLE as the the logical name table when calling $TRNLNM.</description>
      <pubDate>Thu, 26 Jan 2006 10:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955271#M33358</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-26T10:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955272#M33359</link>
      <description>Thanks for your replies, but I don't seem to get them to work. The attached program uses DCL, $TRNLNM and LIB$GET_LOGICAL to translate a name which is input. Only the spawned DCL finds the logical name!&lt;BR /&gt;&lt;BR /&gt;Sample output:&lt;BR /&gt;$ run log&lt;BR /&gt;SYS$SYSDEVICE&lt;BR /&gt;   "SYS$SYSDEVICE" = "DS6000$DKA0:" (LNM$SYSTEM_TABLE)&lt;BR /&gt;SYS$TRNLNM:&lt;BR /&gt;        444 no logical name match&lt;BR /&gt;LIB$_GET_LOGICAL:&lt;BR /&gt;        444 no logical name match&lt;BR /&gt;&lt;BR /&gt;What's going on?</description>
      <pubDate>Thu, 26 Jan 2006 10:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955272#M33359</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-01-26T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955273#M33360</link>
      <description>Further info showing the (default) setup...&lt;BR /&gt;&lt;BR /&gt;$ SHOW LOGICAL LNM$FILE_DEV/TABLE=LNM$SYSTEM_DIRECTORY&lt;BR /&gt;   "LNM$FILE_DEV" = "LNM$PROCESS" (LNM$SYSTEM_DIRECTORY)&lt;BR /&gt;        = "LNM$JOB"&lt;BR /&gt;        = "LNM$GROUP"&lt;BR /&gt;        = "LNM$SYSTEM"&lt;BR /&gt;        = "DECW$LOGICAL_NAMES"&lt;BR /&gt;1  "LNM$SYSTEM" = "LNM$SYSTEM_TABLE" (LNM$SYSTEM_DIRECTORY)&lt;BR /&gt;        = "LNM$SYSCLUSTER"&lt;BR /&gt;2  "LNM$SYSCLUSTER" = "LNM$SYSCLUSTER_TABLE" (LNM$SYSTEM_DIRECTORY)&lt;BR /&gt;1  "DECW$LOGICAL_NAMES" [table] = "" (LNM$SYSTEM_DIRECTORY)&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 10:39:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955273#M33360</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-01-26T10:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955274#M33361</link>
      <description>The problem is that you are passing a space padded string. As a test, just change that lnm variable size to 13 and it will work. For a real solution you'll have to 'trim' the string or rather pass a descriptor to the variable with the length set to the first space location.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 11:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955274#M33361</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-01-26T11:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955275#M33362</link>
      <description>Further to Hein's comment.&lt;BR /&gt;&lt;BR /&gt;Simple rule for system services. Don't expect them to do ANY extra processing of parameters. No trimming of whitespace or case conversions. What you pass is what is used.&lt;BR /&gt;&lt;BR /&gt;Logical name tables are case sensitive, but most of the time, logical names are upper case. When calling $TRNLNM, make sure the string is exactly what you're looking for, with correct case, and all whitespace trimmed and correct length specified.&lt;BR /&gt;&lt;BR /&gt;RTL routines STR$TRIM &amp;amp; STR$UPCASE might be useful.</description>
      <pubDate>Thu, 26 Jan 2006 20:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955275#M33362</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-01-26T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955276#M33363</link>
      <description>&amp;gt; [...] STR$UPCASE [...]&lt;BR /&gt;&lt;BR /&gt;Or specify the LNM$M_CASE_BLIND flag when&lt;BR /&gt;calling SYS$TRNLNM()(first argument).&lt;BR /&gt;&lt;BR /&gt;I had this one all figured out, too, but my&lt;BR /&gt;Fortran is so rusty these days, that HvdH got&lt;BR /&gt;his response posted while I was still running&lt;BR /&gt;my test program.  Such a disappointment.</description>
      <pubDate>Thu, 26 Jan 2006 23:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955276#M33363</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-01-26T23:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955277#M33364</link>
      <description>Dank U wel, Hein! .. and thanks to John and Steven too for their advice. I tried using LNM$M_CASE_BLIND before, but I still had the length problem, of course.&lt;BR /&gt;&lt;BR /&gt;The test program now works if I use the argument lnm(:length) where length=len_trim(lnm).&lt;BR /&gt;&lt;BR /&gt;I appreciate the time everyone took to contribute.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jan 2006 03:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955277#M33364</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-01-27T03:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Logical Name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955278#M33365</link>
      <description>Hein hit the spot with the string lengh!&lt;BR /&gt;&lt;BR /&gt;I have been browsing the OVMS forums for a few months now and have gained valuable information just reading the topics. After posting my first question, I got a solution and some good advice within 24 hours!&lt;BR /&gt;&lt;BR /&gt;I'll now close this thread.. thanks again, guys!</description>
      <pubDate>Fri, 27 Jan 2006 03:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/translating-logical-name/m-p/4955278#M33365</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-01-27T03:44:11Z</dc:date>
    </item>
  </channel>
</rss>

