Re: newbie question on cobol syntax



Mayer wrote:
Hello:

I noticed two styles of cobol syntax:

main.
display "hello"
display "goodbye"
stop run
.

vs.

main.
display "hello".
display "goodbye".
stop run.

Some books use the first, others the second. I have no idea what's the
difference between them, but I note the following:

- MF Cobol/DOS allows both

- RM Cobol/DOS allows only the second, i.e., requires a period at the
end of each statement.

Can someone please explain to me the function of the period in cobol,
what is the basis for the difference in syntax, and what is
recommended.

Same as in English - it marks the end of a thought. It's the difference
between Hemingway and ee cummigs.

If you don't want the instruction to stop, don't use a period.


.



Relevant Pages

  • Re: XML and OO COBOL
    ... > With Net Express V4 it gets far easier as it has added COBOL Syntax for ... > handling XML. ... > * Local Storage is required to support recursive browsing of the ... > * Display The Element Attributes ...
    (comp.lang.cobol)
  • newbie question on cobol syntax
    ... I noticed two styles of cobol syntax: ... display "goodbye" ... Some books use the first, ... RM Cobol/DOS allows only the second, i.e., requires a period at the ...
    (comp.lang.cobol)
  • Re: Good collectibles for adult fans?
    ... books on a couple shelves (I have various US and UK editions of the books, ... want to acquire more in different languages etc, plus deluxe editions etc). ... Map and plan to matte it into a frame (folded to display ... Should I go for a wand and also, ...
    (alt.fan.harry-potter)
  • Good collectibles for adult fans?
    ... books on a couple shelves (I have various US and UK editions of the books, ... Map and plan to matte it into a frame (folded to display ... If you own any of the hats or costuming items I ... Should I go for a wand and also, ...
    (alt.fan.harry-potter)
  • Re: displaying categories/subcategories using modified preorder tree transversal
    ... I was trying to set it up where when a person clicks on books the page ... would reload and then display Books and then Nonfiction and Fiction ... I decided to use the modified preorder tree transversal algorithm. ...
    (comp.lang.php)