Cobol Question:
Download Questions PDF

Difference between next and continue clause?

Answers:

The 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.

CONTINUE: 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 Interview Questions And Answers PDF

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?