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
Define cobol?
What is the usage of comp fields in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
how to convert the recors form vsam file to db2 table tru file aid
how do you reference the ksds vsam file formats from cobol programs
Explain about different table spaces.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
HOw can I get the negative sign while deduct high value from low value
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Difference between cobol and cobol-ii?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is the difference between perform … with test after and perform … with test before?
Mention the guidelines to write a structured cobol program?