- Community Home
- >
- Servers and Operating Systems
- >
- NonStop Servers
- >
- Float values to REST API from Hp Nonstop
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
02-18-2025 02:06 AM - edited 02-18-2025 02:07 AM
02-18-2025 02:06 AM - edited 02-18-2025 02:07 AM
Float values to REST API from Hp Nonstop
Issue: Not able to send float values in restapi payload from Tandem to External world.
CSL-Studio: Data type in CSL studio is float
Generated Stub file:
TEMPERATURE NATIVE-4
On Tandem we have data type PIC 9(4)V9(3).
When we try to move these values to the TEMPERATURE NATIVE-4 We are getting only the first value before point
MOVE 1.4 TO TEMPERATURE
Then I am getting only 1 in TEMPERATURE
VHS Error:
Invalid input values
When we change the stub file:
TEMPERATURE PIC 9(1)V9(3)
Values looks good on Tandem side,
MOVE 1.4 TO TEMPERATURE
Here 1.4 in TEMPERATURE
But the value is not passing to Server, It is coming as Zero.
"temperature": 0.000000
Any help is appriciated and Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 07:02 AM
02-20-2025 07:02 AM
Re: Float values to REST API from Hp Nonstop
The issue is likely due to a data type mismatch between the Tandem system (PIC 9(4)V9(3)) and the external API. The key problems are:
Firstly that might be NATIVE-4 truncates the decimal part, keeping only the integer value.
Secondly, PIC 9(1)V9(3) correctly retains the decimal on Tandem but sends 0.000000 in the API.
Possible solutions are:
Try using NATIVE-8 instead of NATIVE-4.>> Explicitly convert the value using FUNCTION NUMVAL(TEMPERATURE).>> Ensure the API expects float values correctly formatted (e.g., as a string).>> Ensure the API expects float values correctly formatted (e.g., as a string).>> The bebug the outgoing JSON payload to confirm the value before transmission.
I hope it helps. Let me know..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 06:17 AM
02-24-2025 06:17 AM
Query: Float values to REST API in Hp Nonstop
Hello,
Let us know if you were able to resolve the issue.
If you are satisfied with the answers then kindly click the "Accept As Solution" button for the most helpful response so that it is beneficial to all community members.
Please click on "Thumbs Up/Kudo" icon to give a "Kudo".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 01:01 AM
02-25-2025 01:01 AM
Re: Float values to REST API from Hp Nonstop
Hi @Mr_Techie
Thank you for your reply. It's not working.
When I put native-8, I am getting length invalid.
My server is expecting float values.