Re: newbie question on cobol syntax
- From: "HeyBub" <heybubNOSPAM@xxxxxxxxx>
- Date: Mon, 23 Apr 2007 11:28:31 -0500
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.
.
- Follow-Ups:
- Re: newbie question on cobol syntax
- From: Richard
- Re: newbie question on cobol syntax
- From:
- Re: newbie question on cobol syntax
- References:
- newbie question on cobol syntax
- From: Mayer
- newbie question on cobol syntax
- Prev by Date: Re: newbie question on cobol syntax
- Next by Date: Re: newbie question on cobol syntax
- Previous by thread: Re: OT: Military Ranks/Computers : WAS Re: newbie question on cobol syntax
- Next by thread: Re: newbie question on cobol syntax
- Index(es):
Relevant Pages
|