- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Converting D_Floating(COMP-2) data to readable for...
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
08-24-2018 07:26 AM
08-24-2018 07:26 AM
Converting D_Floating(COMP-2) data to readable format data
Hi,
i have D_floating (COMP-2) variables in my index files. when i try to read index file these columns data in hexa decimal format and unreadable format.
i am writing COBOL program to move these D_floating columns data to readable data type columns and tring to write in to sequential file for reading that data.
Please help me how can we convert to D_Floating columns data(COMP-2) to readable format data types (interger 9 or text X). what will be declaration for readable format data types (picture clause)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2018 01:03 PM
08-24-2018 01:03 PM
Re: Converting D_Floating(COMP-2) data to readable format data
Just MOVE in COBOL for example to a PIC 999999.99 field for dollars and cents.
The Cobol RTL will do the work.
You can also explcitily call conversion functions like OTS$CNVOUT (HP OpenVMS RTL General Purpose(OTS$) Manual)
Hope this helps,
Hein