Difference between NEXT SENTENCE & CONTINUE

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
Posts: 16
Joined: Fri Jun 25, 2010 10:50 am

Difference between NEXT SENTENCE & CONTINUE

Post by ballaravi@gmail.com » Sun Dec 12, 2010 7:01 pm

Can any one please tell what is the Difference between NEXT SENTENCE & CONTINUE ??

If possible with example..
Thank You

User avatar
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Dec 14, 2010 1:28 pm

This is the link to NEXT SENTENCE in the manual
this is the link to CONTINUE

read and then if you have questions, post the question in this thread.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

User avatar
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Thu Dec 30, 2010 10:00 am


They appear to be similar, that is, the control goes to the next sentence in the paragraph. But, Next Sentence would
take the control to the sentence after it finds a full stop (.). Check out by writing the following code example, one if
sentence followed by 3 display statements
If 1 > 0 then next sentence
end if
display 'line 1'
display 'line 2'.
display 'line 3'. *** Note- there is a dot (.) only at the end of
the last 2 statements, see the effect by replacing Next Sentence with Continue :)

You're never fully dressed without a smile :)


Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:03 pm

<< Content deleted By Admin >>

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others