Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example.
Answer Posted / satish k
Explanation for Next sentence:
sol:
code:
If A>B
next sentence
end-if
display 1
display 2.
display 3.
So, over here the output is no doubt 3 provided A>B id true.
well, but it works is, the next sentence will always search
for the next executable sentence in the flow.
Here, the next executable sentence was display 3.so, it
executes and gives output as 3.
Explanation for Continue:
code:
if a>b
continue
end-if
display 1
display 2.
display 3.
Here in Continue statement, it is just like 'do nothing'.
so, it will executes all the display statements.
| Is This Answer Correct ? | 37 Yes | 3 No |
Post New Answer View All Answers
What is the difference between binary search and sequential search?
What is the use of intialize verb?
Name the sections present in data division.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Write some characteristics of cobol as means of business language.
In COBOL programming, what is PERFORM? What is VARYING?
Name some of the examples of COBOl 11?
How to remove 2 duplicate records and copy only one using job control language?
What is the difference between Call and a Link?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Explain how to differentiate call by context by comparing it to other calls?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the difference between PIC 9.99 and PIC9v99?