[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] MULTIPLY statement bug ?
From: |
David Essex |
Subject: |
[open-cobol-list] MULTIPLY statement bug ? |
Date: |
Tue May 20 03:24:06 2003 |
There appears to be a bug in the MULTIPLY statement, format 1, COBOL 85
standard.
Format 1 syntax:
MULTIPLY { identifier-1 | literal-1 } BY ( identifier-n [ROUNDED] )...
The value of identifier-1 or literal-1 is multiplied by the value of
identifier-n, and the product is placed in identifier-n (n > 1).
Example 1 (valid):
MULTIPLY .10 BY IDNUMBER .
Example 2 (not-valid):
MULTIPLY IDNUMBER BY .10 .
In example 2, OC version 0.21 for MinGW, did not trap the error.
Is this a bug or was the standard changed for COBOL 200x ?
- [open-cobol-list] MULTIPLY statement bug ?,
David Essex <=