Cobol Question:

Difference between next and continue clause?

Tweet Share WhatsApp

Answers:

Answer #1The difference between the next and continue verb is that in the continue verb it is used for a situation where there in no EOF condition that is the records are to be accessed again and again in an file, whereas in the next verb the indexed file is accessed sequentially, read next record command is used.

Answer #2CONTINUE: NOP and control goes to after the Scope Terminator.
NEXT SENTENCE: NOP and control goes to after next period *OR* to end of paragraph if no period--also, control BYPASSES all Scope Terminators until it finds this period, so this could be unexpected behavior.

Download Cobol PDF Read All 110 Cobol Questions
Previous QuestionNext Question
What is difference between COBOL and VS COBOL II?What is the Importance of GLOBAL clause According to new standards of COBOL?