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 are the access modes of START statement?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
how can i see junk values in dclgen or in hostvariable of comp ?
Discuss about changing dataset name in proc.
what is the use of outrecord?
Which mode is used to operate the sequential file?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between external and global variables in COBOL?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the local-storage section?
How many bytes S(8) comp field occupy and its maximum value?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
explain sorting techniques in cobol program?
What are the different open modes available in cobol?
how do you reference the fixed unblock file formats from cobol programs