<?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$WAIT &amp;amp; COBOL/VMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935772#M32899</link>
    <description>solution was to declare the variable as:&lt;BR /&gt;&lt;BR /&gt;pic 9(5) comp value 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 23 Oct 2005 21:28:19 GMT</pubDate>
    <dc:creator>Alex Bartonek</dc:creator>
    <dc:date>2005-10-23T21:28:19Z</dc:date>
    <item>
      <title>LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935765#M32892</link>
      <description>May or may not be the proper forum but its worth a shot..&lt;BR /&gt;&lt;BR /&gt;Currently in my COBOL program I am using the lib$wait routine.  Its being called in block of code that is being run via a perform loop.&lt;BR /&gt;&lt;BR /&gt;For testing purposes I set the initial wait time to 10 seconds.  The first time the perform loop runs through and hits the LIB$WAIT call it waits for 10 seconds. If there is no work to do it calls lib$wait but completely skips the 10 second count from then on as if it had met the 10 second wait criteria.&lt;BR /&gt;&lt;BR /&gt;Here is my call:&lt;BR /&gt;   CALL "LIB$WAIT" USING BY REFERENCE duration, libnowake, float-type&lt;BR /&gt;&lt;BR /&gt;duration is set to 10&lt;BR /&gt;libnowake is set to 0 or 1, but I've also substituted 'OMITTED' in place of libnowake..none of these values fixed the problem.&lt;BR /&gt;&lt;BR /&gt;Current versions of software pertinent to this problem:&lt;BR /&gt;OVMS = 7.3-2, roll-up patch 4  &lt;BR /&gt;COBOL 2.8 &lt;BR /&gt;RDB 7.1-411 &lt;BR /&gt;&lt;BR /&gt;I thank you'all in advance! &lt;BR /&gt;&lt;BR /&gt;-Alex&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Oct 2005 23:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935765#M32892</guid>
      <dc:creator>Alex Bartonek</dc:creator>
      <dc:date>2005-10-21T23:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935766#M32893</link>
      <description>&lt;BR /&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;I would have suspected the Control flags arguments: "The flags argument is the address of a longword integer that contains the control flags. The following flag is defined: Bit 0,  LIB$K_NOWAKE  LIB$WAIT will not wake in the case of an interrupt.  &lt;BR /&gt;&lt;BR /&gt;This is an optional argument. If omitted, the default is 0, and LIB$WAIT &lt;BR /&gt;will wake in the case of an interrupt. "&lt;BR /&gt;&lt;BR /&gt;As discussed in:&lt;BR /&gt;&lt;A href="https://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=948325" target="_blank"&gt;https://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=948325&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But it sounds like you already tried passing the integer value 1 as argument there.&lt;BR /&gt;&lt;BR /&gt;I would triple-check and print out all arguments to lib$wait just before it being called.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Oct 2005 23:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935766#M32893</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-10-21T23:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935767#M32894</link>
      <description>I'd add to Hein's suggestion, add the GIVING clause and see that the return status is normal (1).</description>
      <pubDate>Sat, 22 Oct 2005 00:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935767#M32894</guid>
      <dc:creator>Garry Fruth</dc:creator>
      <dc:date>2005-10-22T00:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935768#M32895</link>
      <description>See also&lt;BR /&gt;&lt;A href="http://www.openvms.org/phorum/read.php?f=1&amp;amp;i=2760&amp;amp;t=2760" target="_blank"&gt;http://www.openvms.org/phorum/read.php?f=1&amp;amp;i=2760&amp;amp;t=2760&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Oct 2005 11:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935768#M32895</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-10-22T11:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935769#M32896</link>
      <description>Hello Alex,&lt;BR /&gt;&lt;BR /&gt;It may be worth checking the variable which you use as the 'seconds' argument. LIB$WAIT requires a F-FLOATING value but your variable may not be declared as a COMP-1. If the variable is declared correctly is the compiler using an unexpected floating point type.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935769#M32896</guid>
      <dc:creator>Ian McKerracher_1</dc:creator>
      <dc:date>2005-10-22T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935770#M32897</link>
      <description>Alex,&lt;BR /&gt;&lt;BR /&gt;could you please try this once...&lt;BR /&gt;&lt;BR /&gt;01 duration comp-1.&lt;BR /&gt;....&lt;BR /&gt;move 10.0 to duration.&lt;BR /&gt;CALL "LIB$WAIT" using by reference duration.&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;The other way....&lt;BR /&gt;&lt;BR /&gt;and other doubt I have is when I read the VMS help about lib$wait, in which they mentioned about the thrid argument float type....&lt;BR /&gt;&lt;BR /&gt;float-type&lt;BR /&gt;"This is an optional argument. If omitted, the default is F_floating. F_floating is&lt;BR /&gt;the "--required--" float-type when LIB$WAIT is called from a module written in a language that "--prototypes--" functions"&lt;BR /&gt;&lt;BR /&gt;Looks like we should use this third argument (LIB$K_VAX_F -- Alpha, LIB$K_IEEE_S --- IA64).&lt;BR /&gt;&lt;BR /&gt;So try float-type = LIB$K_VAX_F alternatively with LIB$K_NOWAKE and LIB$K_NOWAIT control flags. Just trial only...&lt;BR /&gt;&lt;BR /&gt;If it doesn't work, could please past your PERFORM loop code?&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Sat, 22 Oct 2005 21:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935770#M32897</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-10-22T21:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935771#M32898</link>
      <description>Ok.. the problem was in the declaration of the libnowait variable..&lt;BR /&gt;&lt;BR /&gt;I was using comp-1, it should have been pic 9(5) comp value  1.&lt;BR /&gt;&lt;BR /&gt;-Alex</description>
      <pubDate>Sun, 23 Oct 2005 21:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935771#M32898</guid>
      <dc:creator>Alex Bartonek</dc:creator>
      <dc:date>2005-10-23T21:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$WAIT &amp; COBOL/VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935772#M32899</link>
      <description>solution was to declare the variable as:&lt;BR /&gt;&lt;BR /&gt;pic 9(5) comp value 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Oct 2005 21:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-amp-cobol-vms/m-p/4935772#M32899</guid>
      <dc:creator>Alex Bartonek</dc:creator>
      <dc:date>2005-10-23T21:28:19Z</dc:date>
    </item>
  </channel>
</rss>

