[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)
- [open-cobol-list] possibly bug: accept into numeric field, Thomas Biehler, 2003/11/04
- Re: [open-cobol-list] possibly bug: accept into numeric field, Keisuke Nishida, 2003/11/07
- Re: [open-cobol-list] possibly bug: accept into numeric field, Thomas Biehler, 2003/11/10
- Re: [open-cobol-list] possibly bug: accept into numeric field, Keisuke Nishida, 2003/11/10
- Re: [open-cobol-list] possibly bug: accept into numeric field, masterok, 2003/11/11
- Re: [open-cobol-list] possibly bug: accept into numeric field,
Alain Lucari <=
- RE: [open-cobol-list] possibly bug: accept into numeric field, William M. Klein, 2003/11/11
- Re: [open-cobol-list] possibly bug: accept into numeric field, Alain Lucari, 2003/11/12
- [open-cobol-list] MOVE Statement (was: possibly bug: accept into numeric field, William M. Klein, 2003/11/12
- Re: [open-cobol-list] possibly bug: accept into numeric field, Thomas Biehler, 2003/11/11
- Re: [open-cobol-list] possibly bug: accept into numeric field, Bernard Giroud, 2003/11/11
- Re: [open-cobol-list] possibly bug: accept into numeric field, Keisuke Nishida, 2003/11/14
- Re: [open-cobol-list] possibly bug: accept into numeric field, Alain Lucari, 2003/11/14