Clicky
Skip to Content
Custom Search

Reply to comment

Alan.R.Wynne
Offline
Joined: 07/07/2011
The next sentence command

The next sentence command does exactly what it says, it goes to the next sentence which follows after the next full stop. The continue command starts executing at the next Statement.

In COBOL a statement is not a sentence, Sentences are separated by full stops.

My personal coding standard is never to code full stops in my programs except at the end of a paragraph on a line of it's own. Also banned is the next sentence clause.

By coding in this way all confusion between next sentence and continue is eliminated.

Here is some pseudo code to demonstrate the difference:

Evaluate a
when 1
continue
when 2
next sentence
end-evaluate

next-statement-continues here.
next-sentence.

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 714
Theme by Dr. Radut.