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 perform what is varying?
Can we change the password using ALTER? anyone tried and changed?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
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)?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
how to move the records from file to array table. give with code example
Explain the configuration section of a cobol program with examples of syntax.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the difference between Global and External Variables?
How many bytes S(8) comp field occupy and its maximum value?
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
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Which is not true about evaluate statement
What guidelines should be followed to write a structured cobol prgm?