HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Variable value reset to 0
Operating System - HP-UX
1828630
Members
7258
Online
109983
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 11:24 AM
01-23-2003 11:24 AM
Variable value reset to 0
Hi,
On HPUX:11.00
32 bit application using Oracle 8i client connecting to Oracle 8.0.6.
In the line of code below
double EgiftBalance=0.0;
txnP->bucket_ind = 1;
EgiftBalance = (posFilP->GetEgiftBalance() - TransAmount);
txnP->EgiftBalance = EgiftBalance;
txnP->MerCreditBal = posFilP->GetMerCreditBal();
txnP->GiftAmount = transAmount;
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->TxId.data(), TransAmount, txnP->bucket_ind, posFilP->GetMerCreditBal(), posFilP->GetEgiftBalance(), txnP->EgiftBalance, txnP->MerCreditBal, txnP->GiftAmount, txnP->RefundAmount, EgiftBalance);
I am trying to calulate value of EgiftBalance. Values of (posFilP->GetEgiftBalance() and TransAmount are non zero and result in some positive value, But when see output of sprintf Value of EgiftBalance = 0.
This happen only 3-8 time out of 500,000 the code is executed in a day.
Also this happen only in one server not on other.
I am missing some patch for this?
Any help will be greatly appricated.
Thanks,
Shailesh
On HPUX:11.00
32 bit application using Oracle 8i client connecting to Oracle 8.0.6.
In the line of code below
double EgiftBalance=0.0;
txnP->bucket_ind = 1;
EgiftBalance = (posFilP->GetEgiftBalance() - TransAmount);
txnP->EgiftBalance = EgiftBalance;
txnP->MerCreditBal = posFilP->GetMerCreditBal();
txnP->GiftAmount = transAmount;
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->TxId.data(), TransAmount, txnP->bucket_ind, posFilP->GetMerCreditBal(), posFilP->GetEgiftBalance(), txnP->EgiftBalance, txnP->MerCreditBal, txnP->GiftAmount, txnP->RefundAmount, EgiftBalance);
I am trying to calulate value of EgiftBalance. Values of (posFilP->GetEgiftBalance() and TransAmount are non zero and result in some positive value, But when see output of sprintf Value of EgiftBalance = 0.
This happen only 3-8 time out of 500,000 the code is executed in a day.
Also this happen only in one server not on other.
I am missing some patch for this?
Any help will be greatly appricated.
Thanks,
Shailesh
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 02:18 PM
01-23-2003 02:18 PM
Re: Variable value reset to 0
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?
HTH
Marty
HTH
Marty
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP