Difference between next and continue clause

Answers were Sorted based on User's Feedback



Difference between next and continue clause..

Answer / anil prajapati

When we use CONTINUE.it will take the execution control to
statement after the immediate explicit scope terminator.
and NEXT SENTENCE will take the execution control to
statement after the immediate period.

Is This Answer Correct ?    5 Yes 0 No

Difference between next and continue clause..

Answer / mithun

CONTINUE will take the execution control to statement after
the immediate explicit scope terminator. NEXT SENTENCE will
take the execution control to statement after the immediate
period.

Is This Answer Correct ?    4 Yes 0 No

Difference between next and continue clause..

Answer / mahesh

Continue will take the control to the next statement.
Eg:
else if cond
continue|next sentence
else
perform imperative statement
end-if
move xxx to yyy. ---1
move zzz to yyy. ---2

In this case control will be transferred to line 1.
Next sentence will transfer the control to the next
sentence.That is line no.2.

Is This Answer Correct ?    3 Yes 0 No

Difference between next and continue clause..

Answer / sidaraddi vijay

Continue is the No operation statement. the control is just
passed to next statement.

Next sentence passes the control to the next sentence.
Enjoy bye

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More COBOL Interview Questions

A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


Name the sections present in data division.

0 Answers  


Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,






Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


How to retain the Duplicates in the one records?

3 Answers   CS,


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

0 Answers  


How to pass return codes from cobol to jcl?

5 Answers  


A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X

3 Answers   TCS,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


Categories