bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] possibly bug: accept into numeric field


From: Alain Lucari
Subject: Re: [open-cobol-list] possibly bug: accept into numeric field
Date: Tue Nov 11 04:18:16 2003

Le Tue, 11 Nov 2003 10:43:55 +0900
Keisuke Nishida <address@hidden> a écrit:

> 
> What results do you suppose to obtain (or do you get
> from other compilers) by the following ACCEPT?
> 
>   Data item          Input
>   ---------          -----
>   01 X-1 PIC 99.     "123"
>   01 X-2 PIC 99V9.   "1"
>   01 X-3 PIC 99V9.   "123.4"
> 
> Maybe "23", "010", and "234"?  But it seems the standard
> requires X-1 to be "12". (At leat the NIST Test Suite has
> a test for this.)  Gee.
> 
I suppose that the quotes are just for explanation and not typed,
IMHO exactly 23, 010 and 23V4 with numerics receivers above
or "12", "1  ", "123" if the receivers are pic XX and XXX
 and "123.4" if the receiver is PIC X(5)
exactly like from a move.

Regards,
-- 
Alain Lucari (Eurlix)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]