<?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: symbols in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131762#M25995</link>
    <description>John,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ r python_root:[vms.bin]python xdoit.py&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The run command does not seem to like me &lt;BR /&gt;&amp;gt;passing the xdoit.py argument?&lt;BR /&gt;&lt;BR /&gt;  That's correct. The DCL RUN command doesn't understand parameters. There are several ways of passing parameters to images, here are a few. In each case &lt;IMAGE&gt; is the full file specification of the target image.&lt;BR /&gt;&lt;BR /&gt;1) Define a foreign command symbol&lt;BR /&gt;&lt;BR /&gt; $ foreign_command="$&lt;IMAGE&gt;"&lt;BR /&gt; $ foreign_command parameter parameter...&lt;BR /&gt;&lt;BR /&gt;2) use the DCL$PATH logical name&lt;BR /&gt;&lt;BR /&gt; $ DEFINE DCL$PATH dir1,dir2,dir3,...&lt;BR /&gt; $ image-name parameter parameter&lt;BR /&gt;&lt;BR /&gt; (in this case image-name is just the name, not the full file specification)&lt;BR /&gt;&lt;BR /&gt;3) use the (undocumented) MCR command&lt;BR /&gt;&lt;BR /&gt; $ MCR &lt;IMAGE&gt; parameter parameter...&lt;BR /&gt;&lt;BR /&gt;4) define a DCL command using the CLD utility and call CLI$ routines to determine values of parameters and qualifiers. &lt;BR /&gt;&lt;/IMAGE&gt;&lt;/IMAGE&gt;&lt;/IMAGE&gt;</description>
    <pubDate>Thu, 25 Sep 2008 01:52:20 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2008-09-25T01:52:20Z</dc:date>
    <item>
      <title>symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131757#M25990</link>
      <description>I am working in an openvms alpha environment, but have relatively little openvms experience.  I have an issue that I describe below.  There must be an easy answer?&lt;BR /&gt;&lt;BR /&gt;$ sh sym python&lt;BR /&gt;  PYTHON == "$ python_root:[vms.bin]python"&lt;BR /&gt;&lt;BR /&gt;$ sh log python_root&lt;BR /&gt;   "PYTHON_ROOT" = "$2$DKA0:[3RD_PARTY.PYTHON.PYTHON250.]" (LNM$SYSTEM_TABLE)&lt;BR /&gt;&lt;BR /&gt;The python symbol works as it should:&lt;BR /&gt;* If I type “python”, I go into an interactive python session.&lt;BR /&gt;* If I type “python xdoit.py”, xdoit.py is run.&lt;BR /&gt;&lt;BR /&gt;But if I try to execute the symbol contents directly, i.e.:&lt;BR /&gt;$ $ python_root:[vms.bin]python&lt;BR /&gt;Or:&lt;BR /&gt;$ $ python_root:[vms.bin]python xdoit.py&lt;BR /&gt;These do not work?&lt;BR /&gt;And for both, I get:&lt;BR /&gt;%DCL-W-NOLBLS, label ignored - use only within command procedures&lt;BR /&gt; \PYTHON_ROOT:\&lt;BR /&gt;%DCL-W-NOCOMD, no command on line - reenter with alphabetic first character&lt;BR /&gt;&lt;BR /&gt;If I get rid of one of the starting dollar signs, I still get the same error.&lt;BR /&gt;&lt;BR /&gt;What is going on here and what do I need to do to get the latter cases to work?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2008 23:53:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131757#M25990</guid>
      <dc:creator>John Tannahill</dc:creator>
      <dc:date>2008-09-24T23:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131758#M25991</link>
      <description>John, to run PYTHON&lt;BR /&gt;&lt;BR /&gt;either&lt;BR /&gt;&lt;BR /&gt;$ PYTHON&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;$ r python_root:[vms.bin]python</description>
      <pubDate>Thu, 25 Sep 2008 00:11:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131758#M25991</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2008-09-25T00:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131759#M25992</link>
      <description>Thanks Thomas, that works for the simple case, but what about:&lt;BR /&gt;&lt;BR /&gt;$ r python_root:[vms.bin]python xdoit.py&lt;BR /&gt;&lt;BR /&gt;The run command does not seem to like me passing the xdoit.py argument?  Could not find any examples of run using arguments in the online documentation.&lt;BR /&gt;&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 00:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131759#M25992</guid>
      <dc:creator>John Tannahill</dc:creator>
      <dc:date>2008-09-25T00:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131760#M25993</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ PYTHON xdoit.py&lt;BR /&gt;&lt;BR /&gt;The concept is called foreign commands.</description>
      <pubDate>Thu, 25 Sep 2008 00:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131760#M25993</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2008-09-25T00:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131761#M25994</link>
      <description>Got enough info to point me in the right direction for what I am trying to do.</description>
      <pubDate>Thu, 25 Sep 2008 00:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131761#M25994</guid>
      <dc:creator>John Tannahill</dc:creator>
      <dc:date>2008-09-25T00:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131762#M25995</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ r python_root:[vms.bin]python xdoit.py&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The run command does not seem to like me &lt;BR /&gt;&amp;gt;passing the xdoit.py argument?&lt;BR /&gt;&lt;BR /&gt;  That's correct. The DCL RUN command doesn't understand parameters. There are several ways of passing parameters to images, here are a few. In each case &lt;IMAGE&gt; is the full file specification of the target image.&lt;BR /&gt;&lt;BR /&gt;1) Define a foreign command symbol&lt;BR /&gt;&lt;BR /&gt; $ foreign_command="$&lt;IMAGE&gt;"&lt;BR /&gt; $ foreign_command parameter parameter...&lt;BR /&gt;&lt;BR /&gt;2) use the DCL$PATH logical name&lt;BR /&gt;&lt;BR /&gt; $ DEFINE DCL$PATH dir1,dir2,dir3,...&lt;BR /&gt; $ image-name parameter parameter&lt;BR /&gt;&lt;BR /&gt; (in this case image-name is just the name, not the full file specification)&lt;BR /&gt;&lt;BR /&gt;3) use the (undocumented) MCR command&lt;BR /&gt;&lt;BR /&gt; $ MCR &lt;IMAGE&gt; parameter parameter...&lt;BR /&gt;&lt;BR /&gt;4) define a DCL command using the CLD utility and call CLI$ routines to determine values of parameters and qualifiers. &lt;BR /&gt;&lt;/IMAGE&gt;&lt;/IMAGE&gt;&lt;/IMAGE&gt;</description>
      <pubDate>Thu, 25 Sep 2008 01:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131762#M25995</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-09-25T01:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131763#M25996</link>
      <description>&amp;gt; [...] relatively little openvms experience.&lt;BR /&gt;&lt;BR /&gt;The FAQ covers many useful topics:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hoffmanlabs.com/vmsfaq/" target="_blank"&gt;http://www.hoffmanlabs.com/vmsfaq/&lt;/A&gt;</description>
      <pubDate>Thu, 25 Sep 2008 02:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131763#M25996</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-25T02:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131764#M25997</link>
      <description>John &amp;amp; Steven,&lt;BR /&gt;&lt;BR /&gt;I have learned a valuable lesson - not to close my posts too hastily.  I would like to give you guys points, but it appears that I cannot?&lt;BR /&gt;&lt;BR /&gt;It turns out that for us, the optimal solution appears to be to use DCL$PATH.  It is less intrusive than adding a command to the command table (&amp;amp; easier in general).&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;John</description>
      <pubDate>Thu, 25 Sep 2008 16:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131764#M25997</guid>
      <dc:creator>John Tannahill</dc:creator>
      <dc:date>2008-09-25T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131765#M25998</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;The series of columns that I did for OpenVMS.org on logical names and related topics may also be of interest.&lt;BR /&gt;&lt;BR /&gt;They are cross linked, but the last one [on logical names] can be found at &lt;A href="http://www.openvms.org/stories.php?story=03/03/03/4358185" target="_blank"&gt;http://www.openvms.org/stories.php?story=03/03/03/4358185&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are also some other presentations that I have done in the past for Connect [the user group] (fka Encompass, fka DECUS). Those can be reached via my firm's presentations page at &lt;A href="http://www.rlgsc.com/presentations.html" target="_blank"&gt;http://www.rlgsc.com/presentations.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope that the above is helpful.&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;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 16:54:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131765#M25998</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-09-25T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: symbols</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131766#M25999</link>
      <description>&lt;BR /&gt; &amp;gt;&amp;gt; the optimal solution appears to be to use DCL$PATH.&lt;BR /&gt;&lt;BR /&gt;This is true for most executables or command-files.&lt;BR /&gt;In the case of python as far I know it is not enough to know the main executable, but it needs some more definitions/logicals pointing to a phython root directory. Therefore it needs some kind of setup file, which then can have the command definition as well.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Sep 2008 10:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbols/m-p/5131766#M25999</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2008-09-26T10:10:02Z</dc:date>
    </item>
  </channel>
</rss>

