From: Bill Klein on
Given that commas (and semi-colons) EXCEPT within literals and
picture-strings, have ZERO meaning in COBOL, I love doing examples of
"valid" (but USELESS) code, e.g

01, aField Pic X Value; Zero,.
...
Move; Whatever, of This to, something; of; something-else;.

A few vendors do have "extensions" where a comma (without a following space)
works like a space, I can't remember which, but either Micro Focus or IBM
(or possibly both) accepts

Move "This" to Subscripted (A,B)
where the standard would require
(A B)
or
(A, B)


 | 
Pages: 1
Prev: grep'ing CoBOL source