Impossible in my example case. The NEXT SENTENCE is used like an EXIT PARAGRAPH 
verb because the entire paragraph is a single sentence. This is needed to 
remove the requirement for a GOTO to a "name-EXIT." paragraph. It was to 
highlight how awkard the COBOL code becomes if the GOTO is totally eliminated. 
The awkardness is only slightly reduced if people use the END-verb, which I 
highly recommend for all verbs which have it. It specifically delimits the 
scope of the verb. Much like I alway use braces ( {} ) if when not absolutely 
necessary.

-- 
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * 
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Matthew Stitt
> Sent: Monday, April 16, 2012 4:29 PM
> To: IBM-MAIN@bama.ua.edu
> Subject: Re: GO TO "cobol"
> 
> Use of NEXT SENTENCE is as dangerous as GO TO.  Try using CONTINUE.
> 
> The former takes you to the next period;  the latter takes 
> you to the end 
> of the current conditional.  One missed period and ....
> 
> ----------------------------------------------------------------------
> 
> I've seen many programs without a single period.  How they 
> work is beyond
> my comprehension.  Of course, a paragraph name does imply a period.
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN
> 
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to