<?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: Problem with version checking script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227194#M39554</link>
    <description>FYI This is a VMS 7.1-2 box and I don't have access to a version of DFU that will run with it...I have PCSI versions for 301 and 302 but nothing prior.</description>
    <pubDate>Fri, 26 Feb 2010 13:14:14 GMT</pubDate>
    <dc:creator>John A.  Beard</dc:creator>
    <dc:date>2010-02-26T13:14:14Z</dc:date>
    <item>
      <title>Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227192#M39552</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I am trying to get a script working that will read a pre-defined list of disks and check for LOG files with a version number in excess of a specified limit. The problem I'm having is that after it encounters its first .LOG file it exits without continuing to check the rest of the disk (or read the next disk in the list).&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ open/read disklist NODESYS:[EMSHELP]isxv06_ems_disk.lis&lt;BR /&gt;$ploop:&lt;BR /&gt;$ read/end=fini disklist drec&lt;BR /&gt;$ device_name = f$extract(0,10,drec)&lt;BR /&gt;$ write sys$output ""&lt;BR /&gt;$ write sys$output "Reading ''device_name'"&lt;BR /&gt;$ write sys$output ""&lt;BR /&gt;$l1:&lt;BR /&gt;$ tmp = F$Search("''device_name'[*...]*.LOG;")&lt;BR /&gt;$ if (tmp.nes."")&lt;BR /&gt;$ then&lt;BR /&gt;$ vers = F$Parse("''Tmp'",,,"version")-";"&lt;BR /&gt;$ endif&lt;BR /&gt;$ if (vers .gt. 5000)&lt;BR /&gt;$ then &lt;BR /&gt;$ write sys$output tmp&lt;BR /&gt;$ endif&lt;BR /&gt;$fini:&lt;BR /&gt;$ close disklist&lt;BR /&gt;$ exit</description>
      <pubDate>Fri, 26 Feb 2010 13:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227192#M39552</guid>
      <dc:creator>John A.  Beard</dc:creator>
      <dc:date>2010-02-26T13:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227193#M39553</link>
      <description>Missing goto I1  ? What if tmp = "" ?</description>
      <pubDate>Fri, 26 Feb 2010 13:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227193#M39553</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2010-02-26T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227194#M39554</link>
      <description>FYI This is a VMS 7.1-2 box and I don't have access to a version of DFU that will run with it...I have PCSI versions for 301 and 302 but nothing prior.</description>
      <pubDate>Fri, 26 Feb 2010 13:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227194#M39554</guid>
      <dc:creator>John A.  Beard</dc:creator>
      <dc:date>2010-02-26T13:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227195#M39555</link>
      <description>Hi John,&lt;BR /&gt;     Thomas fingered your problems.   &lt;BR /&gt;&lt;BR /&gt;1.   You need some kind of loop back to l1 after every logfile found.&lt;BR /&gt;2.   When the loop reaches the end of the device, f$search will return "".    At that point you probably need to go to Ploop and read the next device.&lt;BR /&gt;&lt;BR /&gt;These two explain why it only goes through the loop once, and why to doesnt go to the next device.&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Fri, 26 Feb 2010 13:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227195#M39555</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-02-26T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227196#M39556</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;If I insert a GOTO into the script I get the following result...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reading $1$DKB201:&lt;BR /&gt;&lt;BR /&gt;$1$DKB201:[EMS_LOGIN_HAG.MIS_USER.EMSSAP]UCX$FTPSERVER.LOG;5815&lt;BR /&gt;$1$DKB201:[EMS_LOGIN_HAG.MIS_USER.EMSSAP]UCX$FTPSERVER.LOG;5815&lt;BR /&gt;$1$DKB201:[EMS_LOGIN_HAG.MIS_USER.EMSSAP]UCX$FTPSERVER.LOG;5815&lt;BR /&gt;$1$DKB201:[EMS_LOGIN_HAG.MIS_USER.EMSSAP]UCX$FTPSERVER.LOG;5815&lt;BR /&gt;Ctl/Y Interrupt&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ open/read disklist NODESYS:[EMSHELP]isxv06_ems_disk.lis&lt;BR /&gt;$ploop:&lt;BR /&gt;$ read/end=fini disklist drec&lt;BR /&gt;$ device_name = f$extract(0,10,drec)&lt;BR /&gt;$ write sys$output ""&lt;BR /&gt;$ write sys$output "Reading ''device_name'"&lt;BR /&gt;$ write sys$output ""&lt;BR /&gt;$l1:&lt;BR /&gt;$ tmp = F$Search("''device_name'[*...]*.LOG;")&lt;BR /&gt;$ if (tmp.nes."")&lt;BR /&gt;$ then&lt;BR /&gt;$ vers = F$Parse("''Tmp'",,,"version")-";"&lt;BR /&gt;$ endif&lt;BR /&gt;$ if (vers .gt. 5000)&lt;BR /&gt;$ then &lt;BR /&gt;$ write sys$output tmp&lt;BR /&gt;$ endif&lt;BR /&gt;$ GOTO L1&lt;BR /&gt;$fini:&lt;BR /&gt;$ close disklist&lt;BR /&gt;$ exit</description>
      <pubDate>Fri, 26 Feb 2010 13:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227196#M39556</guid>
      <dc:creator>John A.  Beard</dc:creator>
      <dc:date>2010-02-26T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227197#M39557</link>
      <description>$ set noon &lt;BR /&gt;&lt;BR /&gt;$close/nolog disklist&lt;BR /&gt;&lt;BR /&gt;$ open/read disklist NODESYS:[EMSHELP]isxv06_ems_disk.lis &lt;BR /&gt;$ploop: &lt;BR /&gt;$ read/end=fini disklist drec &lt;BR /&gt;$ device_name = f$extract(0,10,drec) &lt;BR /&gt;$ write sys$output "" &lt;BR /&gt;$ write sys$output "Reading ''device_name'" &lt;BR /&gt;$ write sys$output "" &lt;BR /&gt;$l1:&lt;BR /&gt;$ tmp = F$Search("''device_name'[*...]*.LOG;") &lt;BR /&gt;&lt;BR /&gt;$ if tmp.eqs."" then goto ploop&lt;BR /&gt;&lt;BR /&gt;$ vers = F$Parse("''Tmp'",,,"version")-";"  &lt;BR /&gt;$ if (vers .gt. 5000) &lt;BR /&gt;$ then &lt;BR /&gt;$ write sys$output tmp &lt;BR /&gt;$ endif &lt;BR /&gt;$ GOTO L1 &lt;BR /&gt;$fini: &lt;BR /&gt;$ close disklist &lt;BR /&gt;$ exit</description>
      <pubDate>Fri, 26 Feb 2010 14:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227197#M39557</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-02-26T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with version checking script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227198#M39558</link>
      <description>Thanks to one and all...it works perfectly now. If you were in Toronto I'd buy you a beer..guess it will have to be a rain check!</description>
      <pubDate>Fri, 26 Feb 2010 14:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-version-checking-script/m-p/5227198#M39558</guid>
      <dc:creator>John A.  Beard</dc:creator>
      <dc:date>2010-02-26T14:12:29Z</dc:date>
    </item>
  </channel>
</rss>

