Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example.

Answer Posted / ankur kar

the following code explains u clearly

If A>B

next sentence

end-if

display 1

display 2.

display 3.

it will display only 3. if a>b

if a>b

continue

end-if

display 1

display 2.

display 3.

it will display 1 2 3. if a>b. let me know if it is not
correct.

Is This Answer Correct ?    97 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What rules are to be followed while using the corresponding options?

632


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


what are decleratives in cobol?

1827


what is difference between cobol and cobol/400

21556


how do you reference the variable unblock file formats from cobol programs

743






What are declaratives and what are their uses in cobol?

706


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1646


How do define dynamic array in cobol.

669


what is amode(24), amode(31), rmode(24) and rmode(any)?

691


i want a program using by if, evaluate , string, unstring, perform, occurs?

4046


What are various search techniques in cobol? Explain.

641


How are the next sentence and continue different from each other?

760


State the various causes of s0c1, s0c5 and s0c7.

658


Have you used comp and comp-3 in your project? And how?

2006


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

704