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


Please Help Members By Posting Answers For Below Questions

1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5375


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1934


What is the usage of comp fields in cobol?

656


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

714






What are different data types in cobol?

687


How do u write test cases?

1633


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.

2008


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3715


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

705


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

772


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

821


What rules are followed by the search verb.

635


how do you define single dimensional array and multidimensional array in your cobol?

672


What is the difference between goback, stop run and exit program in cobol?

923