For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2006 > Re: free implementation? factorial?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: free implementation? factorial?
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.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com