<?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: LIB$SET_SYMBOL behaviour in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208115#M26868</link>
    <description>Some thoughts...&lt;BR /&gt;- Are you using the normal CLI?&lt;BR /&gt;- Is 'alf' a character string descriptior?&lt;BR /&gt;- Is the descriptor 'alf' longer than 1024 bytes?&lt;BR /&gt;- Are you getting SS$_NORMAL for your calls to LIB$SET_SYMBOL and LIB$GET_SYMBOL or have you only tested the low-end bit?&lt;BR /&gt;- Does the program have an exit handler that deletes the symbol before control returns to the CLI?&lt;BR /&gt;- Is there anything in the executable image that make it run differently when in batch mode compared to interactively?</description>
    <pubDate>Sun, 08 Nov 2009 21:33:24 GMT</pubDate>
    <dc:creator>John McL</dc:creator>
    <dc:date>2009-11-08T21:33:24Z</dc:date>
    <item>
      <title>LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208109#M26862</link>
      <description>VMS 8.3-1H1, PASCAL 6.1-116&lt;BR /&gt;&lt;BR /&gt;When a program is about to end, some data is stored in a symbol:&lt;BR /&gt;&lt;BR /&gt;Status := LIB$SET_SYMBOL ("RESTARTKEUZE",Alf,Table);&lt;BR /&gt;&lt;BR /&gt;then the program exits normally.&lt;BR /&gt;The existance of the symbol is checked&lt;BR /&gt;&lt;BR /&gt;$ IF F$TYPE(RESTARTKEUZE) .NES. "" THEN GOTO RERUN&lt;BR /&gt;&lt;BR /&gt;This label marks the line:&lt;BR /&gt;&lt;BR /&gt;$ run ThisProgram&lt;BR /&gt;&lt;BR /&gt;After restart, the symbol is fetched to regain the information stored on exit:&lt;BR /&gt;&lt;BR /&gt;Status := LIB$GET_SYMBOL&lt;BR /&gt;        ("RESTARTKEUZE",Alf,AlfLen, Table );&lt;BR /&gt;&lt;BR /&gt;and the symbol is deleted:&lt;BR /&gt;&lt;BR /&gt;Status := LIB$DELETE_SYMBOL ("RESTARTKEUZE", Table)&lt;BR /&gt;&lt;BR /&gt;Running the program interactively, the symbol is indeed set; it can be examined in DCL, and on rerun the data is indeed retrieved.&lt;BR /&gt;Running from a commandfile (@procedure)however, the symbol is set (observered outputting status) but the symbol does NOT appear in DCL: F$TYPE (RESTARTKEUZE) returns "" no matter what has been set in the program. SHOW SYMBOL RESTARTKEUZE issues NOSUCHSYM as well. But LIB$SET_SYMBOL finished succesfully.&lt;BR /&gt;&lt;BR /&gt;There is nothing in the docs that mentions this difference.  What have I overlooked?</description>
      <pubDate>Fri, 06 Nov 2009 12:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208109#M26862</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2009-11-06T12:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208110#M26863</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;Please forgive me for asking what may be obvious, but I would first want to confirm (by the use of SET VERIFY, if necessary) that the RUN command in the command file is not being executed in a sub-process.&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>Fri, 06 Nov 2009 12:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208110#M26863</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-11-06T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208111#M26864</link>
      <description>Hoi Willem,&lt;BR /&gt;&lt;BR /&gt;What type of symbols are you creating (local/global) and does this DCL procedure use a set symbol/scope command?&lt;BR /&gt;&lt;BR /&gt;Oswald</description>
      <pubDate>Fri, 06 Nov 2009 13:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208111#M26864</guid>
      <dc:creator>Oswald Knoppers_1</dc:creator>
      <dc:date>2009-11-06T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208112#M26865</link>
      <description>I've done 'funny things'  with "run" as a symbol, but that's not the case here:&lt;BR /&gt;&lt;BR /&gt;@@2:RKL&amp;gt; sho sym r*&lt;BR /&gt;@@2:RKL&amp;gt; sho sym r*&lt;BR /&gt;  RDML == "$RDML"&lt;BR /&gt;  RDO == "$RDO"&lt;BR /&gt;  REC*ALL == "RECALL"&lt;BR /&gt;@@2:RKL&amp;gt; &lt;BR /&gt;&lt;BR /&gt;No subproces either. The command procedure test.com is just:&lt;BR /&gt;$!&lt;BR /&gt;$ define sys$input tt: ! required for program&lt;BR /&gt;$loop:&lt;BR /&gt;$ run test.exe&lt;BR /&gt;$ sho symbol RESTARTKEUZE ! testing: NOSUCHSYM ???&lt;BR /&gt;$ if f$type(RESTARTKEUZE) .nes. "" THEN GOTO LOOP&lt;BR /&gt;$!&lt;BR /&gt;invoked by $ @test. &lt;BR /&gt;&lt;BR /&gt;Executing each command interactively works just fine.</description>
      <pubDate>Fri, 06 Nov 2009 13:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208112#M26865</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2009-11-06T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208113#M26866</link>
      <description>Forgot to add in the original posting:&lt;BR /&gt;&lt;BR /&gt;VAR&lt;BR /&gt;...    Table    : INTEGER := LIB$K_CLI_GLOBAL_SYM;&lt;BR /&gt;&lt;BR /&gt;conform the docs. I tried the constant directly but that wasn't accepted by the compiler.</description>
      <pubDate>Fri, 06 Nov 2009 13:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208113#M26866</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2009-11-06T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208114#M26867</link>
      <description>Source code reproducer, please?</description>
      <pubDate>Fri, 06 Nov 2009 13:18:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208114#M26867</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-06T13:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208115#M26868</link>
      <description>Some thoughts...&lt;BR /&gt;- Are you using the normal CLI?&lt;BR /&gt;- Is 'alf' a character string descriptior?&lt;BR /&gt;- Is the descriptor 'alf' longer than 1024 bytes?&lt;BR /&gt;- Are you getting SS$_NORMAL for your calls to LIB$SET_SYMBOL and LIB$GET_SYMBOL or have you only tested the low-end bit?&lt;BR /&gt;- Does the program have an exit handler that deletes the symbol before control returns to the CLI?&lt;BR /&gt;- Is there anything in the executable image that make it run differently when in batch mode compared to interactively?</description>
      <pubDate>Sun, 08 Nov 2009 21:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208115#M26868</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2009-11-08T21:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208116#M26869</link>
      <description>Willem,&lt;BR /&gt;  Testing using three MACRO32 programs. &lt;BR /&gt;&lt;BR /&gt;First is SETSYM, takes 2 parameters, symbol and value. Defines a global symbol returning status in $STATUS. &lt;BR /&gt;&lt;BR /&gt;Second GETSYM, takes one parameter, symbol name. Prints result and returns $STATUS. &lt;BR /&gt;&lt;BR /&gt;Third program DELSYM, takes one parameter, symbol name to be deleted.&lt;BR /&gt;&lt;BR /&gt;My test sequence is:&lt;BR /&gt; &lt;BR /&gt;$   SHOW SYMBOL TEST&lt;BR /&gt;$   ! Defining symbol with SETSYM&lt;BR /&gt;$   SETSYM TEST VALUE&lt;BR /&gt;$   ! Status should be good&lt;BR /&gt;$   SHOW SYMBOL $STATUS&lt;BR /&gt;$   ! Symbol should exist&lt;BR /&gt;$   SHOW SYMBOL TEST&lt;BR /&gt;$   ! Reading symbol with GETSYM&lt;BR /&gt;$   GETSYM TEST&lt;BR /&gt;$   ! Status should be good&lt;BR /&gt;$   SHOW SYMBOL $STATUS&lt;BR /&gt;$   ! Symbol should still exist&lt;BR /&gt;$   SHOW SYMBOL TEST&lt;BR /&gt;$   ! Deleting symbol with DELSYM&lt;BR /&gt;$   DELSYM TEST&lt;BR /&gt;$   ! Status should be good&lt;BR /&gt;$   SHOW SYMBOL $STATUS&lt;BR /&gt;$   ! Looking for symbol, should fail UNDSYM&lt;BR /&gt;$   SHOW SYMBOL TEST&lt;BR /&gt;&lt;BR /&gt;Attached procedure will create the programs and run the test.&lt;BR /&gt;&lt;BR /&gt;Tested on V7.3-2 Alpha and V8.3-1H1 IA64. Both interactive and batch processes behave as expected on both systems.&lt;BR /&gt;&lt;BR /&gt;Please run this test on your system to eliminate the library routines. If it is successful, you'll have to look for bugs in your Pascal code.</description>
      <pubDate>Sun, 08 Nov 2009 23:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208116#M26869</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-11-08T23:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208117#M26870</link>
      <description>Hang on a sec!&lt;BR /&gt;&lt;BR /&gt;$ define sys$input tt: ! required for program&lt;BR /&gt;$loop:&lt;BR /&gt;$ run test.exe&lt;BR /&gt;&lt;BR /&gt;is the program reading input? Perhaps it's seeing EOF and exiting. This obviously won't work in a batch job.&lt;BR /&gt;&lt;BR /&gt;Add PRINT statements at your LIB$ calls to verify that they're really executing.</description>
      <pubDate>Sun, 08 Nov 2009 23:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208117#M26870</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-11-08T23:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208118#M26871</link>
      <description>@JohnML:&lt;BR /&gt;"Alf"  is a character string of 12 characters; no exit handler; All calls return SS$_NORMAL (checked); the image does not behave differently when run in a command procedure.&lt;BR /&gt;&lt;BR /&gt;JohnG:&lt;BR /&gt;The program takes input; but since it's not run in batch, that isn't the problem (it does work normally, it even sets the symbol, but it seemd not to survive image exit: DCL didn't recognize it).&lt;BR /&gt;&lt;BR /&gt;Anyway: &lt;BR /&gt;&lt;BR /&gt;Tried creating reproducer: Just get_symbol, delete_symbol and Set_Symbol with some WRITELN's, but the problem did not re-occur.&lt;BR /&gt;Tried creating a reproducer by taking the original sources, struipped all that wasn't needed, and the rpoblem didn't re-occur either.&lt;BR /&gt;Took the original program, removed all comments and all external refeernces: similar: Noproblem. Re-enabled external references one by one, and still no problem.&lt;BR /&gt;&lt;BR /&gt;I don't know what caused it, but the problem didn't occur anymore....&lt;BR /&gt;&lt;BR /&gt;(Tried to post the latter part last Friday but it took too long for ITRC to digest (?))&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Nov 2009 07:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208118#M26871</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2009-11-09T07:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SET_SYMBOL behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208119#M26872</link>
      <description>What you're describing is usually indicative of a corruption (potentially elsewhere) in the run-time context.  These cases are less commonly seen with Pascal applications than with some other languages, but it's possible for these cases to arise in most any non-trivial application.  Regardless, I'd look to confirm you're current on your OpenVMS I64 and any Pascal patches and such.</description>
      <pubDate>Mon, 09 Nov 2009 12:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-set-symbol-behaviour/m-p/5208119#M26872</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-09T12:32:48Z</dc:date>
    </item>
  </channel>
</rss>

