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


Please Help Members By Posting Answers For Below Questions

What is perform what is varying?

701


Can we change the password using ALTER? anyone tried and changed?

1542


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

691


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

704


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)?

624






System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


how to move the records from file to array table. give with code example

2216


Explain the configuration section of a cobol program with examples of syntax.

655


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


What is the difference between Global and External Variables?

660


How many bytes S(8) comp field occupy and its maximum value?

1626


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2331


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


Which is not true about evaluate statement

1567


What guidelines should be followed to write a structured cobol prgm?

668