Hi All,
I have a Cobol subroutine called and running under CICS. It has been compiled using Xpediter and conforms to 'COBOL for OS/390 & VM RELEASE 2.2'. The compilation option of TRUNC(OPT) is in effect.
I know that with this option, the onus is on the programmer to ensure that the value of the data conforms to the size of the field, but what do we think should happen in the following scenarios:
PIC 9(10) VALUE 1234567890 moved to PIC S9(8) BINARY.
PIC 9(10) VALUE 1234567890 moved to PIC S9(9) BINARY.
The use of the word BINARY, rather than COMP-5 appears to be a site standard, so I am unable to use it.
Marc
I have a Cobol subroutine called and running under CICS. It has been compiled using Xpediter and conforms to 'COBOL for OS/390 & VM RELEASE 2.2'. The compilation option of TRUNC(OPT) is in effect.
I know that with this option, the onus is on the programmer to ensure that the value of the data conforms to the size of the field, but what do we think should happen in the following scenarios:
PIC 9(10) VALUE 1234567890 moved to PIC S9(8) BINARY.
PIC 9(10) VALUE 1234567890 moved to PIC S9(9) BINARY.
The use of the word BINARY, rather than COMP-5 appears to be a site standard, so I am unable to use it.
Marc