Hooray! COBOL 203X here we come!
I don't think I'll be able to work on this before December.
Provide configuration for returning error codes for fileio system library calls
I think COBOL is the colour of old computers: yellowy-beige, brick red and azure blue. Basically, any colour in this room:
Correct me if I'm wrong but I am inferring the following: 1) The GnuCOBOL v2.2 behaviour is correct. 2) The GnuCOBOL v1.1 behaviour is incorrect. 3) The example code in the documentation is incorrect and needs correcting. Indeed. I've opened [bugs:#450] for the documentation. Can you please also confirm (both in this thread and in the documentation) precisiely with which numeric data types binary truncation (and pretty display) has an effect and which it does not. Certainly: binary truncation only...
Binary truncation example wrong
I've been doing this wrong! I'm very sorry for the confusion. I'd forgotten I'd changed COMP-5 to COMP. COMP is standard and so binary-truncation, which enables standard-like truncation, has an effect. But COMP-5 is non-standard - it's always 8/16/32/64 bits and the PIC clause doesn't indicate the number of digits but the number of bits needed. So binary-truncation makes no sense on COMP-5 items and has no effect. This is MF behaviour ("truncate ... on stores into COMP, BINARY and COMP-4 items")...
I don't have access to an MF compiler at the moment and I can't find any documentation on how numbers are DISPLAYed.