[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Returning clause in procedure division
From: |
Bill Klein |
Subject: |
Re: [open-cobol-list] Returning clause in procedure division |
Date: |
Mon, 28 Jan 2008 22:52:38 -0600 |
What the '02 Standard defines (having RETURNING in the Procedure Division
header) was a relatively late enhancement and was NOT something in any of
the (many) compilers that had the "returning" concept (and allowed it in a
CALL statement) - when the '02 Standard was approved.
It certainly SHOULD be allowed there by any compiler conforming to the '02
Standard, but it is NOT needed for any compiler that is simply trying to
"match" the common extension to the '85 Standard.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of David Essex
> Sent: Sunday, January 27, 2008 11:57 AM
> To: open-cobol-list
> Subject: [open-cobol-list] Returning clause in procedure division
>
> While the RETURNING clause is allowed in the CALL statement,
> it seams to
> be missing from the 'PROCEDURE DIVISION'.
>
> Doesn't the COBOL 2002 standard define the following ?
>
> CALL [ using-phrase ] [ RETURNING data-name-2 ]
>
> PROCEDURE DIVISION [ using-phrase ] [ RETURNING data-name-2 ] ...
>
>
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>