<?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: Variable value reset to 0 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/variable-value-reset-to-0/m-p/2889683#M819002</link>
    <description>You need to narrow down the source of the problem. Have you identified which records are getting the zero value and that the data in these records are valid? If they are valid, what values are the same?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
    <pubDate>Thu, 23 Jan 2003 22:18:55 GMT</pubDate>
    <dc:creator>Martin Johnson</dc:creator>
    <dc:date>2003-01-23T22:18:55Z</dc:date>
    <item>
      <title>Variable value reset to 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/variable-value-reset-to-0/m-p/2889682#M819001</link>
      <description>Hi,&lt;BR /&gt;On HPUX:11.00&lt;BR /&gt;32 bit application using Oracle 8i client connecting to Oracle 8.0.6.&lt;BR /&gt;&lt;BR /&gt;In the line of code below&lt;BR /&gt;double EgiftBalance=0.0;&lt;BR /&gt;txnP-&amp;gt;bucket_ind = 1;&lt;BR /&gt;EgiftBalance = (posFilP-&amp;gt;GetEgiftBalance() - TransAmount);&lt;BR /&gt;txnP-&amp;gt;EgiftBalance = EgiftBalance;&lt;BR /&gt;txnP-&amp;gt;MerCreditBal = posFilP-&amp;gt;GetMerCreditBal();&lt;BR /&gt;txnP-&amp;gt;GiftAmount = transAmount;&lt;BR /&gt;sprintf(errorString,"*** PATH 6: TxnId [%s] TxnAmt [%.2f] txnP_bind [%d] GCM_MCB [%.2f] GCM_EB [%.2f] txnP_EB [%.2f] txnP_MCB [%.2f] txnP_GAmt [%.2f] txnP_RAmt [%.2f] L_EB [%.2f] ***", txnP-&amp;gt;TxId.data(), TransAmount, txnP-&amp;gt;bucket_ind, posFilP-&amp;gt;GetMerCreditBal(), posFilP-&amp;gt;GetEgiftBalance(), txnP-&amp;gt;EgiftBalance, txnP-&amp;gt;MerCreditBal, txnP-&amp;gt;GiftAmount, txnP-&amp;gt;RefundAmount, EgiftBalance);&lt;BR /&gt;&lt;BR /&gt;I am trying to calulate value of EgiftBalance. Values of (posFilP-&amp;gt;GetEgiftBalance() and TransAmount are non zero and result in some positive value, But when see output of sprintf Value of EgiftBalance = 0.&lt;BR /&gt;This happen only 3-8 time out of 500,000 the code is executed in a day.&lt;BR /&gt;Also this happen only in one server not on other.&lt;BR /&gt;&lt;BR /&gt;I am missing some patch for this?&lt;BR /&gt;&lt;BR /&gt;Any help will be greatly appricated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shailesh&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jan 2003 19:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/variable-value-reset-to-0/m-p/2889682#M819001</guid>
      <dc:creator>Shailesh_6</dc:creator>
      <dc:date>2003-01-23T19:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value reset to 0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/variable-value-reset-to-0/m-p/2889683#M819002</link>
      <description>You need to narrow down the source of the problem. Have you identified which records are getting the zero value and that the data in these records are valid? If they are valid, what values are the same?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 23 Jan 2003 22:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/variable-value-reset-to-0/m-p/2889683#M819002</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2003-01-23T22:18:55Z</dc:date>
    </item>
  </channel>
</rss>

