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
Explain how to differentiate call by context by comparing it to other calls?
Name the sections present in data division.
Write a cobol program making use of the redefine clause.
What are the pertinent COBOL commands?
In which area will you utilize 88 level items in cobol?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
) How do u handle errors in BMS macro
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is a SSRANGE and NOSSRANGE?
What is the difference between goback, stop run and exit program in cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
How do you get the data to code the BMS macro?
What the difference is between continue and next sentence?
Explain about different table spaces.
What are the different data types in cobol?