Re: Misnomers in the COBOL standard



William Bub wrote:
(Jumping in from my usual lurking...)

I always liked it that COBOL nearly always worked left to right: MOVE VAR1 TO VAR2, ADD 1 to VAR3, etc.
I wish there were a COMPUTE syntax which worked the same way: COMPUTE VAR1 + VAR2 GIVING VAR3 ???
(The last time I suggested it, everyone thought I was nuts!)

Interesting but not nuts :-). Your example is logical and immediately comprehensible but it does make it inconsistent with other uses of the COMPUTE. Think on it -

COMPUTE (Something) = (formula)

Jimmy
.



Relevant Pages