Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example.
Answer Posted / ankur kar
the following code explains u clearly
If A>B
next sentence
end-if
display 1
display 2.
display 3.
it will display only 3. if a>b
if a>b
continue
end-if
display 1
display 2.
display 3.
it will display 1 2 3. if a>b. let me know if it is not
correct.
| Is This Answer Correct ? | 97 Yes | 16 No |
Post New Answer View All Answers
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
i need a small 3d program using inline and outline.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
How are the next sentence and continue different from each other?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
State the various causes of s0c1, s0c5 and s0c7.
Explain how to differentiate call by context by comparing it to other calls?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What are various search techniques in cobol? Explain.
Write the code implementing the perform … varying.
What is a scope terminator give example?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?