Re: Stop Run vs GoBack



On Sun, 24 Jun 2007 18:35:20 GMT, "William M. Klein"
<wmklein@xxxxxxxxxxxxxxxxx> wrote:

3) COBOL (unlike many - possibly MOST - other languages) does NOT require you to
"declare" a program as either a "MAIN" or "SUB" at compile time. (Having a
LINKAGE section *implies* that you are a subprogram, but that is neither
required nor universally even true if you access the fields in it).

The LINKAGE section had some interesting variations. On the Univac
9030 (around 1980), most all of our data fields were in the Linkage
Division for our pseudo-conversational programs. They were called by
the program that ran on-line stuff. Other computer systems got the
same results without a LINKAGE section.
.



Relevant Pages

  • Re: Linkage and Nested Subprograms
    ... If I have a subprogram, that itself has nested subprograms, ... only the "main" subprogram has the linkage section visible. ... display "in main program" ...
    (comp.lang.cobol)
  • Re: Linkage and Nested Subprograms
    ... If I have a subprogram, that itself has nested subprograms, only ... the "main" subprogram has the linkage section visible. ... man who's offended by a God he doesn't believe in?" ...
    (comp.lang.cobol)