<?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: Need DCL help in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600033#M69986</link>
    <description>John&lt;BR /&gt;&lt;BR /&gt;It works great. I only had to modify it to send page messge and email. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Aug 2005 18:04:48 GMT</pubDate>
    <dc:creator>James Viswasam</dc:creator>
    <dc:date>2005-08-10T18:04:48Z</dc:date>
    <item>
      <title>Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600024#M69977</link>
      <description>Hi &lt;BR /&gt;I  have only beginner level knowledge in DCL. I am trying write a script that would track a process that goes into a loop ( CUR state with no I/O ) I know the process name starts with SRV. I need this to be done quickly as we have a problem that causes this. (This is ofcourse a temproary thing until the vendor fixes the application bug that is causing this)&lt;BR /&gt;Your help would be greatly appreciated.&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 17:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600024#M69977</guid>
      <dc:creator>James Viswasam</dc:creator>
      <dc:date>2005-08-09T17:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600025#M69978</link>
      <description>Take a look at  F$GETJPI (help lexical  F$GETJPI) and SYS$EXAMPLES:WORKING_SET.COM.&lt;BR /&gt;&lt;BR /&gt;The command file gives a good example of how check all processes on a system.  F$GETJPI can provide  the I/O numbers you're looking for.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Tue, 09 Aug 2005 18:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600025#M69978</guid>
      <dc:creator>Andy Bustamante</dc:creator>
      <dc:date>2005-08-09T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600026#M69979</link>
      <description>&lt;BR /&gt;Maybe instead of scripts you should look at tools or utilities?&lt;BR /&gt;&lt;BR /&gt;Like &lt;BR /&gt;$moni proc/topcpu&lt;BR /&gt;and &lt;BR /&gt;$moni proc/cont/id...&lt;BR /&gt;&lt;BR /&gt;Do you want to catch a program as soon as possible after it gets into a computable loop? I suspect this is a standard function of tools like DECamds or Openview, but do not really know.&lt;BR /&gt;&lt;BR /&gt;I suppose you could write a dcl script to loop over all processes with F$GETJPI.&lt;BR /&gt;For each process grab cputime. Subtract prior cpu time stored in cpu_'pid. If within 95% of loop interval, report potential problem. After test remember the cpu time in a symbol cpu_'pid. After last process wait 10 seconds and try again.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 20:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600026#M69979</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-08-09T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600027#M69980</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;  I've attached a sample command procedure which looks for processes owned by a specified username (optional) with a process name starting with a specified prefix, it saves the DIOCNT and BIOCNT for each process discovered. When seen again, the state is checked. If CUR or COM, with no change in DIOCNT or BIOCNT, a mail message is sent to a specified user. &lt;BR /&gt;&lt;BR /&gt;  Modification to you exact specifications left as an exercise, usual disclaimers...&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 23:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600027#M69980</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-08-09T23:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600028#M69981</link>
      <description>Oops, almost forgot...&lt;BR /&gt;&lt;BR /&gt;  Since this procedure creates two new symbols for each matching process found, if you leave it running long enough, especially if you have many processes, or high process turnover, it could potentially fill your symbol table.&lt;BR /&gt;&lt;BR /&gt;  Probably a good idea to stop and restart every so often!</description>
      <pubDate>Tue, 09 Aug 2005 23:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600028#M69981</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-08-09T23:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600029#M69982</link>
      <description>John,&lt;BR /&gt;at first glance, your dcl procedure has a little error:&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;$ IF(state.EQS."CUR".OR.state.EQS."COM").AND.&lt;BR /&gt;- (dio-dio'pid'.EQ.0).AND.(bio-bio'pid'.EQ.0)&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;where dio-dio'pid' and bio-bio'pid' don't seem assigned in elsewhere.&lt;BR /&gt;I guess you want to write&lt;BR /&gt;$ IF(state.EQS."CUR".OR.state.EQS."COM").AND.&lt;BR /&gt;- (dio'pid'.EQ.dio).AND.(bio'pid'.EQ.bio)&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 03:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600029#M69982</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-10T03:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600030#M69983</link>
      <description>Antonio,&lt;BR /&gt;&lt;BR /&gt;sorry, but I have to disagree.&lt;BR /&gt;&lt;BR /&gt;John's procedure is entirely correct.&lt;BR /&gt;&lt;BR /&gt;I think you confused the minus-sign with an underscore.&lt;BR /&gt;&lt;BR /&gt;"dio - dio'pid' .eq. 0" is entirely equivalent with &lt;BR /&gt;"dio .eq. dio'pid' &lt;BR /&gt;&lt;BR /&gt;The minus-sign in dio-'pid' is not, and can not be, a character in the name of a symbol, but always is the arithmetic "minus" function operator!.&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>Wed, 10 Aug 2005 04:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600030#M69983</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-08-10T04:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600031#M69984</link>
      <description>Jan,&lt;BR /&gt;you are right. I confused minus with underscore because I don't use this form fo expression.&lt;BR /&gt; &lt;BR /&gt;Thank you!&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 04:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600031#M69984</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-10T04:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600032#M69985</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Andy, I was looking at that lexical and trying to understand it. I will look at the examples from sys$examples.&lt;BR /&gt; &lt;BR /&gt;Hi Hein, thats what I am doing for now, watch mon proc/topc interactively until I put a dcl script in place.&lt;BR /&gt;&lt;BR /&gt;John, thanks a bunch for sharing a DCL command procedure. I was thinking along that lines to get and compare the DIOCNT and BIOCNT. will try to use it as an example since i do not have much time to start monitoring the looping process.&lt;BR /&gt;&lt;BR /&gt;Anotnio/Jan , thanks for your efforts. &lt;BR /&gt;&lt;BR /&gt;All, I am allocating the points and once again thanks for your quick responses.&lt;BR /&gt;I will update here with progress or questions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 11:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600032#M69985</guid>
      <dc:creator>James Viswasam</dc:creator>
      <dc:date>2005-08-10T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need DCL help</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600033#M69986</link>
      <description>John&lt;BR /&gt;&lt;BR /&gt;It works great. I only had to modify it to send page messge and email. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2005 18:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-dcl-help/m-p/3600033#M69986</guid>
      <dc:creator>James Viswasam</dc:creator>
      <dc:date>2005-08-10T18:04:48Z</dc:date>
    </item>
  </channel>
</rss>

