<?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: Symbol Table ED in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989503#M77451</link>
    <description>Jack,&lt;BR /&gt;The DCL CGI script available for debugging DCL symbols and logical names won't work properily. Especially SHOW SYM/ALL wont display any env variable passed to the CGI by the server.&lt;BR /&gt;To view server-created variables, we have pass the variable name explicitly, like $ show symbol sym_name either it is local or global.&lt;BR /&gt;&lt;BR /&gt;There is logical named APACHE$SHOW_CGI_SYMBOL, we can set proper value, go thru this, but I did not try it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Archunan&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Jul 2006 15:07:19 GMT</pubDate>
    <dc:creator>Arch_Muthiah</dc:creator>
    <dc:date>2006-07-07T15:07:19Z</dc:date>
    <item>
      <title>Symbol Table ED</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989502#M77450</link>
      <description>Could use some insight into symbol tables:&lt;BR /&gt;&lt;BR /&gt;I'm beginning to test APACHE.  The example CGI DCL script given displays symbols made available to the script by showing each one.&lt;BR /&gt;&lt;BR /&gt;I modified the script and added:&lt;BR /&gt;&lt;BR /&gt;$ SHOW SYM/GLO/ALL&lt;BR /&gt;$ SHOW SYM/LOC/ALL&lt;BR /&gt;&lt;BR /&gt;but the symbols mentioned above did not appear in either list!&lt;BR /&gt;&lt;BR /&gt;After (too much wasted) time trying to figure this out, I noticed the following in the HELP SHOW SYMBOL PARAM text:&lt;BR /&gt;&lt;BR /&gt;"You can search symbol tables of preceding&lt;BR /&gt;command levels by symbol name, but not by wildcard."&lt;BR /&gt;&lt;BR /&gt;Does this mean that each cmd level has its own Global Symbol Table?&lt;BR /&gt;&lt;BR /&gt;Is there anyway to accomplish what I'm trying to do (i.e, see all symbols available to the script)?&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Fri, 07 Jul 2006 13:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989502#M77450</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-07-07T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol Table ED</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989503#M77451</link>
      <description>Jack,&lt;BR /&gt;The DCL CGI script available for debugging DCL symbols and logical names won't work properily. Especially SHOW SYM/ALL wont display any env variable passed to the CGI by the server.&lt;BR /&gt;To view server-created variables, we have pass the variable name explicitly, like $ show symbol sym_name either it is local or global.&lt;BR /&gt;&lt;BR /&gt;There is logical named APACHE$SHOW_CGI_SYMBOL, we can set proper value, go thru this, but I did not try it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Archunan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2006 15:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989503#M77451</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-07-07T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol Table ED</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989504#M77452</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  Does this mean that each cmd level &lt;BR /&gt;&amp;gt; has its own Global Symbol Table?&lt;BR /&gt;&lt;BR /&gt;General answer:&lt;BR /&gt;&lt;BR /&gt;  No, each command level has a local symbol table. SHOW SYMBOL/GLOBAL/ALL and SHOW SYMBOL/ALL will both work from any command level. However, if the symbols you're interested in are in the *local* table of a higher level procedure, you can't access them by wild card. You can access them by name, provided there isn't a local symbol of the same name occluding it. &lt;BR /&gt;&lt;BR /&gt;  Thus if: &lt;BR /&gt;&lt;BR /&gt;$ SHOW SYMBOL SOME_SYMBOL &lt;BR /&gt;&lt;BR /&gt;  returns a value, but it's not present in &lt;BR /&gt;&lt;BR /&gt;$ SHOW SYMBOL/ALL&lt;BR /&gt;$ SHOW SYMBOL/GLOBAL/ALL&lt;BR /&gt;&lt;BR /&gt;  then it must be in an intervening procedure level.&lt;BR /&gt;&lt;BR /&gt;  You can see how many levels of procedure are active with F$ENVIRONMENT("DEPTH").&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is there anyway to accomplish what I'm&lt;BR /&gt;&amp;gt;trying to do (i.e, see all symbols&lt;BR /&gt;&amp;gt;available to the script)?&lt;BR /&gt;&lt;BR /&gt;  Not in general, but for your case, APACHE, this may help.&lt;BR /&gt;&lt;BR /&gt;  On a system I looked at, it's 3 levels down. The CGI script is called from:&lt;BR /&gt;&lt;BR /&gt;APACHE$COMMON:[000000]APACHE$DCL.COM&lt;BR /&gt;&lt;BR /&gt;which is called from a procedure executing commands read from a mailbox, presumably fed by the server.&lt;BR /&gt;&lt;BR /&gt;  I added a command to APACHE$DCL.COM:&lt;BR /&gt;&lt;BR /&gt;$ PIPE SHOW SYMBOL/ALL &amp;gt; SYS$LOGIN:SYMS.LOG&lt;BR /&gt;&lt;BR /&gt;  before and after the line:&lt;BR /&gt;&lt;BR /&gt;$ APACHE$DCL_ENV -c&lt;BR /&gt;&lt;BR /&gt;  which dumped the local symbols at that procedure level. Comparing the outputs shows this program defines the interesting symbols for your CGI script. &lt;BR /&gt;&lt;BR /&gt;Dumping from the next level up is a bit more of a challenge (note, you can't send the output from upper procedure levels to standard output as it's outside the HTML context headers and footer).&lt;BR /&gt;&lt;BR /&gt;  If you can find the source code to APACHE$DCL_ENV, you might be able to change the LIB$SET_SYMBOL calls from local to global.</description>
      <pubDate>Sun, 09 Jul 2006 17:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989504#M77452</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-09T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol Table ED</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989505#M77453</link>
      <description>Archunan - I went back and reread the rel notes which has the info you gave.  Thanks&lt;BR /&gt;&lt;BR /&gt;John - I didn't know that "local" symbols in a procedure were available to lower procs by explicit reference.  I've always thought that "local" literally meant that, and that "global" symbols were the only path for procedure level symbol interchange.&lt;BR /&gt;&lt;BR /&gt;Thanks for the insight</description>
      <pubDate>Mon, 10 Jul 2006 17:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/symbol-table-ed/m-p/4989505#M77453</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-07-10T17:01:42Z</dc:date>
    </item>
  </channel>
</rss>

