|
----- Message from <geir.kildal@xxxxxxxxxx> on Mon, 14 Oct 2013 15:testpgm:
26:38 +0200 -----
To:
<cobol400-l@xxxxxxxxxxxx>
Subject:
Re: [COBOL400-L] XML using COBOL(RPG)?
Hi Michael.
I have tried computational, comp-3 and binary def for the receiving
field. I still miss the decimals. Here is the essence of my small
WORKING-STORAGE SECTION.
01 ws-a pic x(6) value "-25,33". (SPECIAL NAMES. DECIMAL-
POINT IS COMMA. ( I have also tried without it))
01 ws-b pic s9(5)v9(2) binary value zero. (display, COMP-3,
COMPUTATIONAL - they all fail)
PROCEDURE DIVISION.
mainline section.
main-000.
compute ws-b = function numval-c(ws-a). Result: WS-B = -00025.00
compute ws-b = function numval(ws-a). Result: WS-B = -00025.00
go to main-000.
This is according to the manual, and I just can't understand what
I'm doing wrong..
I'm on V5R4.
Mvh. / Regards / Terveisin
Geir
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.