What is the difference between NEXT SENTENCE and CONTINUE?

Answers were Sorted based on User's Feedback



What is the difference between NEXT SENTENCE and CONTINUE?..

Answer / guest

next sentence:control is skipped to next sentence after a
full stop,continue:control is skipped to the next
executable instruction after a scope terminator.so always
prefer continue rether than next sentence

Is This Answer Correct ?    25 Yes 2 No

What is the difference between NEXT SENTENCE and CONTINUE?..

Answer / vampire

if we give next control will execute after full stop

ex

01 pic a x(10).
01 pic b x(10)
next sentence
01 pic c x(10)
01 pic d x(10)
01 pic e x (10).
01 pic f x(10).

it ill skip 01 pic c x(10)
01 pic d x(10)
01 pic e x (10).


continue perform all executable statements


01 pic a x(10).
01 pic b x(10)
continue
01 pic c x(10)
01 pic d x(10)
01 pic e x (10).
01 pic f x(10).

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More COBOL Interview Questions

Define static linking and dynamic linking.

0 Answers  


What are VS COBOL 11 special features?

1 Answers  


Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?

12 Answers   T systems, Tech Mahindra,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  






Give some advantages of REDEFINES clause?

2 Answers   Syntel,


what is the use of comp2 ? where can we use it with example ?

3 Answers   Covansys,


can we use variable picture clause as xx.99 in cobol.

3 Answers  


what is s013u000 for?

1 Answers   Hewitt,


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


where will u code file status ?

2 Answers   TCS,


Explain about level numbers?

3 Answers  


Categories