<?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: Reference count exceeded in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074329#M86419</link>
    <description>What are "environment logicals"?  And whence&lt;BR /&gt;came "envset"?  That complaint appears to&lt;BR /&gt;come from your program, not from VMS.</description>
    <pubDate>Fri, 21 Sep 2007 15:16:56 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-09-21T15:16:56Z</dc:date>
    <item>
      <title>Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074328#M86418</link>
      <description>&lt;!--!*#--&gt;OpenVMS 7.3-2&lt;BR /&gt;I get this error when I run a command from login.com to change my environment logicals:&lt;BR /&gt;&lt;BR /&gt;Fatal Error -- Reference count for the terminal is 22&lt;BR /&gt;    reduce the number of processes attached to the terminal&lt;BR /&gt;        ** Returned to previous environment **&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;However, when I run this command interactively, it works:&lt;BR /&gt;&lt;BR /&gt;$ envset test&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;        ** Jumping to environment test **&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This happens to two others logging on to this node, all of us using the same user account (a process account we are testing).  The only Reference Count I can find is in the terminal device I am logging on with (sho dev NTY130/full), but this count is 2.  Where is the "22" stored and is there anyway to clear it?  I have verified that there are no processes or users running under this userID, so logging out does not clear this.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 21 Sep 2007 15:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074328#M86418</guid>
      <dc:creator>JHKCMO</dc:creator>
      <dc:date>2007-09-21T15:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074329#M86419</link>
      <description>What are "environment logicals"?  And whence&lt;BR /&gt;came "envset"?  That complaint appears to&lt;BR /&gt;come from your program, not from VMS.</description>
      <pubDate>Fri, 21 Sep 2007 15:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074329#M86419</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-21T15:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074330#M86420</link>
      <description>JHKCMO,&lt;BR /&gt;&lt;BR /&gt;To begin with,&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS forum.&lt;BR /&gt;&lt;BR /&gt;Your problem.&lt;BR /&gt;&lt;BR /&gt;Firstly, I _REALLY_ must advise against multiple users using the same account!&lt;BR /&gt;In cases like this, ANY treaces of what has happened loose any traceability.&lt;BR /&gt;&lt;BR /&gt;Now, "envset" is NOT a VMS command. I might try to guess what it can do, but I would rather have precise information.&lt;BR /&gt;Try &lt;BR /&gt;$ show symbol envset&lt;BR /&gt;and chances are it will show some more (although it MIGHT by defined as a DCLTABLES addition...)&lt;BR /&gt;&lt;BR /&gt;If iyt is a symbol, and it equates to &lt;BR /&gt;"@&lt;SOMETHING&gt;&lt;BR /&gt;pleas locate the &lt;SOMETHING&gt;, and a copt REMEMED TO .TXT!!!!&lt;BR /&gt;&lt;BR /&gt;Please scan &lt;SOMETHING&gt; for any @-ed procedures, and if there are not too many, attach those in secundary replies, or, better, make one .TXT file with all of them (clearly indication separate files)&lt;BR /&gt;&lt;BR /&gt;Lets's see what we can get out, eh?&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;&lt;/SOMETHING&gt;&lt;/SOMETHING&gt;&lt;/SOMETHING&gt;</description>
      <pubDate>Fri, 21 Sep 2007 15:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074330#M86420</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-09-21T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074331#M86421</link>
      <description>&lt;!--!*#--&gt;envset is an executable (not HP's) that sets logicals from which a user can run software, so 'envset prod' allows a user to run programs from the prod directory and write to the prod database instance, while 'envset test' allows running from and writing to that code environment.&lt;BR /&gt;&lt;BR /&gt;Hope that makes sense.  There will never be muiltiple users using this account, just a process on a remote system.  For me, the question is why it works interactively, but not from login.com.</description>
      <pubDate>Fri, 21 Sep 2007 15:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074331#M86421</guid>
      <dc:creator>JHKCMO</dc:creator>
      <dc:date>2007-09-21T15:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074332#M86422</link>
      <description>&amp;gt; [...] the question is why it works&lt;BR /&gt;&amp;gt; interactively, but not from login.com.&lt;BR /&gt;&lt;BR /&gt;Probably depends on exactly what it does,&lt;BR /&gt;which remains a mystery.&lt;BR /&gt;&lt;BR /&gt;Ask the fellow who wrote/supplied it?</description>
      <pubDate>Fri, 21 Sep 2007 15:41:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074332#M86422</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-21T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074333#M86423</link>
      <description>Sounds like it is using $GETDVI to get the reference count on SYS$INPUT and calling that the 'terminal' reference count.  In a command procedure, the $GETDVI call will return the current reference count for disk the file resides on since SYS$INPUT is being redirected to the procedure.  Try adding a "$ DEASSIGN SYS$INPUT" command prior to the envset command.&lt;BR /&gt;&lt;BR /&gt;The program in question should really be testing SYS$COMMAND, not SYS$INPUT.</description>
      <pubDate>Fri, 21 Sep 2007 16:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074333#M86423</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2007-09-21T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074334#M86424</link>
      <description>&lt;!--!*#--&gt;Awesome!  Thanks David!  I'm left with one remaining problem if someone can help me further.  My envset works, but the last command in my login.com does not run after that.  I just need to set def to the correct directory.&lt;BR /&gt;login.com....&lt;BR /&gt;.....&lt;BR /&gt;$ ENVSET TEST&lt;BR /&gt;$ SET DEF USER01:[DEV1]&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;After envset runs, I am in a bogus directory:&lt;BR /&gt;$ sho def&lt;BR /&gt;  $1$DGA1:[DEV1]&lt;BR /&gt;%DCL-I-INVDEF, $1$DGA1:[DEV1] does not exist&lt;BR /&gt;&lt;BR /&gt;How can I run that set def command non-interactively after my envset command?&lt;BR /&gt;&lt;BR /&gt;Thanks All!</description>
      <pubDate>Fri, 21 Sep 2007 16:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074334#M86424</guid>
      <dc:creator>JHKCMO</dc:creator>
      <dc:date>2007-09-21T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074335#M86425</link>
      <description>&amp;gt; How can I run that set def command&lt;BR /&gt;&amp;gt; non-interactively after my envset command?&lt;BR /&gt;&lt;BR /&gt;Probably depends on exactly what it does,&lt;BR /&gt;which remains a mystery.&lt;BR /&gt;&lt;BR /&gt;For example, if it creates a new sub-process&lt;BR /&gt;for you, then subsequent commands in the&lt;BR /&gt;command procedure can't do much until it's&lt;BR /&gt;too late.&lt;BR /&gt;&lt;BR /&gt;Why can't you SET DEFAULT _before_ you run&lt;BR /&gt;the mystery command?</description>
      <pubDate>Fri, 21 Sep 2007 17:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074335#M86425</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-21T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074336#M86426</link>
      <description>&lt;!--!*#--&gt;I tried that but the envset includes, I believe, a set def command; I'm not sure where it picks this up, but when I set def beforehand, my process is still redirected by envset.</description>
      <pubDate>Fri, 21 Sep 2007 17:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074336#M86426</guid>
      <dc:creator>JHKCMO</dc:creator>
      <dc:date>2007-09-21T17:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074337#M86427</link>
      <description>&amp;gt; I tried that but [...]&lt;BR /&gt;&lt;BR /&gt;I can believe that.  It appears that you have&lt;BR /&gt;an application problem, not a VMS problem,&lt;BR /&gt;and, as we don't even know what that&lt;BR /&gt;application is (although Google offers some&lt;BR /&gt;possible clues), we don't know what it does,&lt;BR /&gt;so the best you can hope for here is an&lt;BR /&gt;insightful guess or two.  Unless the&lt;BR /&gt;application vendor's support is particularly&lt;BR /&gt;poor, it's not clear to me why you're asking&lt;BR /&gt;about it here rather than there.&lt;BR /&gt;&lt;BR /&gt;For all I know, there's some mystery&lt;BR /&gt;configuration file where you can specify a&lt;BR /&gt;default directory to be used for environment&lt;BR /&gt;"test".  I could try reading the manual, if I&lt;BR /&gt;had any idea which product we're discussing.</description>
      <pubDate>Fri, 21 Sep 2007 17:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074337#M86427</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-21T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074338#M86428</link>
      <description>I'd guess one of the logicals envset is defining is USER01 (as $1$DGA1), which is ostensibly valid at some other installtion.  Use the search command to look within the evnset.exe file for the string $1$DGA1 - it may be hardcoded into the program.  Otherwise it may be in a configuration file read by envset.</description>
      <pubDate>Fri, 21 Sep 2007 19:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074338#M86428</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2007-09-21T19:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference count exceeded</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074339#M86429</link>
      <description>envset.exe is a proprietary program from Cerner Corporation for its Millennium healthcare system.  It is not documented (that I can find) on their web site.  I believe it was created for internal Cerner use, but many Cerner customers use it.  There is one version for VMS and a different, but equivalent, version for Unix systems.&lt;BR /&gt;&lt;BR /&gt;I have never used it, as I wrote a DCL script to do something similar, which satisfies my needs.  I did play with envset once, a long time ago, and deduced a couple of things about it.  And I still have an e-mail from its author, dated 2001, describing its use.&lt;BR /&gt;&lt;BR /&gt;If JHKCMO poses his questions to one of the Cerner list servers, they will be seen by others with experience of this program.  (But I have found a couple of the responses in this, HP, forum quite interesting.)&lt;BR /&gt;&lt;BR /&gt;In answer to some other questions:  &lt;BR /&gt;&lt;BR /&gt;What are "environment logicals"?  These are a set of logical names defined in a group logical name table that defines things like standard directories, the executables used, and the database one connects to.&lt;BR /&gt;&lt;BR /&gt;What does EnvSet do?  I am not sure of all the details.  It seems to spawn a detached process with the same user portion of the UIC, but a different group number.  Control is transferred to the detached process.  Perhaps the detached process runs its own login.com on startup?  A Show User command does not list it as a sub-process.  Logging out returns control to the previous process.</description>
      <pubDate>Mon, 24 Sep 2007 02:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reference-count-exceeded/m-p/4074339#M86429</guid>
      <dc:creator>DSM_1</dc:creator>
      <dc:date>2007-09-24T02:07:44Z</dc:date>
    </item>
  </channel>
</rss>

