[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [open-cobol-list] 2002/85 syntax question
From: |
Bill Klein |
Subject: |
RE: [open-cobol-list] 2002/85 syntax question |
Date: |
Mon Mar 7 06:57:20 2005 |
My first reply may have missed your point.
"Not on"
is NOT a valid "conditional" indicator for either CALL or ADD. You *must*
read another word in, i.e.
"Not On Exception"
vs
"Not On Size Error"
It would be NON-conforming to require the programmer to add an END-ADD
"just" because you did not want to have to distinguish between the two.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Roger While
> Sent: Monday, March 07, 2005 7:58 AM
> To: Bill Klein
> Cc: address@hidden
> Subject: [open-cobol-list] 2002/85 syntax question
>
> Bill, can you clarify this :
>
> CALL "XYZ"
> ON EXCEPTION
> ADD something TO somethingelse
> NOT ON EXCEPTION
> do something else
> END-CALL.
>
> Problem here is that the "NOT ON" is a possible
> conditional (SIZE ERROR) for the "ADD".
> This turns up in the NIST tests (specifically IC222A).
>
> The syntax in itself is clear but I am unsure about
> the interpretation in 2002. After reading 14.4, I am
> still unclear about statement termination. In other words,
> in the syntax above should we necessarily have an "END-ADD" ?
>
> Incidentally, OC borks on this.
>
> Roger
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>