Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example.

Answer Posted / murali

Answer #9 would never compile in the first place. We cannot
have and END-IF. after an END-IF. without an IF statement.

The ANSI-85 specifically flags that NEXT SENTENCE within IF
ELSE END-IF Block.

In the example provided in #4

If A>B
next sentence
end-if
display 1
display 2.
display 3.

when A>B is true Display 3 will be executed and if not
display 1 display 2 display 3 will be executed. This means
that we want to display 1 and display 2 to be executed in
when A > B is false. In such cases it should be coded in the
else portion of the code. When display 1 and display 2
should be executed irrespective of the test condition, then
the next sentence needs to be replaced with continue.

Avoid coding a next sentence within if - else - end-if blocks.

Very simple.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) what is the difference between AID and HANDLE AID?

2149


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

1141


Name the sections present in data division.

1238


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5741


how do you reference the printer file formats from cobol programs

1218


IF I mention stop run in CICS what happens?

2371


Write a cobol program making use of the redefine clause.

1177


Mention the guidelines to write a structured cobol program?

1091


How do u write test cases?

2063


Write some characteristics of cobol as means of business language.

1142


how do you reference the ksds vsam file formats from cobol programs

1185


How do you define a variable of comp-1 and comp-2?

1199


What is cobol?

1238


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1141


Explain about different table spaces.

1093