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

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

0 Answers  


whats the difference between search and search all?

4 Answers   Patni,


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

0 Answers  


Describe the cobol database components?

0 Answers  


TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr

1 Answers   MNC,






What is the utilization of copybook in cobol?

0 Answers  


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

3 Answers   Covansys,


wht is the difference between goto and perform stmts

7 Answers   DELL,


can you declare redefine in level 01?

8 Answers   Patni,


How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  


Write a program that uses move corresponding.

0 Answers  


What is the point of the REPLACING option of a copy statement?

3 Answers  


Categories