gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [open-cobol-list] OC issues (more)


From: Bill Klein
Subject: RE: [open-cobol-list] OC issues (more)
Date: Tue Jan 17 15:57:01 2006

Sorry John, but this is NOT a syntax error (according to the '85 ANSI
Standard).  See (among other places), the Substantive Change on Page XVII-42

which states,

"(8) Uniaueness of reference (1 NUC). A user-defined word need not be unique
or be capable of being made unique unless referenced."

   ***

If you CARE, the reationale behind this change (in the early 80's) was to
allow COPY members to create non-unique names - as long as those
items/procedures were never referenced in the program. 

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On 
> Behalf Of John R. Culleton
> Sent: Tuesday, January 17, 2006 3:32 PM
> To: address@hidden
> Cc: Sergey Kashyrin
> Subject: Re: [open-cobol-list] OC issues (more)
> 
> On Tuesday 17 January 2006 01:18 pm, Sergey Kashyrin wrote:
> > Hi again.
> > All of that is about compatibility with MAJOR compilers 
> (390, AS/400, MF,
> > FJ) in a situations when program is incorrect.
> >
> >        IDENTIFICATION DIVISION.
> >        PROGRAM-ID. ztest INITIAL.
> >        ENVIRONMENT DIVISION.
> >        DATA DIVISION.
> >        WORKING-STORAGE SECTION.
> >        PROCEDURE DIVISION.
> >            PERFORM 01-SUB.
> >            PERFORM 02-SUB.
> >            GOBACK.
> >        01-SUB.
> >            DISPLAY "TEST1 OK".
> >        01-EXIT.
> >            EXIT.
> >        02-SUB.
> >            DISPLAY "TEST2 OK".
> >        01-EXIT.
> >            EXIT.
> 
> Paragraph name 01-EXIT is defined twice. The compile should error
> off. 
> 
> The exit paragraphs are superflouous in any case because there are
> no PERFORM---  THRU --- statements. 
> 
> Decades ago IBM upgraded COBOL D(?) and programs started blowing
> up. They had paragrahs not terminated by a period. But that was
> just sloppy programming.
> 
> No one should construct a compiler IMO to accept syntax errors
> just because other compilers are silent on the errors. 
> 
> -- 
> John Culleton
> Books with answers to marketing and publishing questions:
> http://wexfordpress.com/tex/shortlist.pdf
> 
> Book coaches, consultants and packagers:
> http://wexfordpress.com/tex/packagers.pdf
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
> dat=121642
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]