| Chuck Stevens 2006-01-10, 9:55 pm |
| Thanks for pointing out the additional requirement. I'd forgotten that
PROGRAM-ID was (and has apparently always been) required by the standard,
and that our relaxation of that rule was an implementor-defined extension.
The Unisys MCP COBOLs before '85 don't require PROGRAM-ID at all, and the
'85 implementation doesn't require it for simple monolithic standalone
programs, only for programs that are nested or that contain nested programs,
and for sequences of monolithic programs in a single source file compiled
into individual object code files by a single execution of the compiler.
-Chuck Stevens
"Nicolas Neuss" <Nicolas.Neuss@iwr.uni-heidelberg.de> wrote in message
news:87vews2h70.fsf@ortler.iwr.uni-heidelberg.de...
> "Chuck Stevens" <charles.stevens@unisys.com> writes:
>
>
> OK, this works for me (OpenCobol) after indenting by 8 and introducing a
> line 2
> PROGRAM-ID. FACTORIAL.
>
> Thanks, Nicolas.
|