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

I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

1 Answers   L&T,


What is XDC ?

3 Answers   Cap Gemini, IBM,


Difference between array and sub-script ?

0 Answers   HCL,


What is the default value(s) for an initialize and what keyword allows for an override of the default?

0 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,






can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)

13 Answers   CTS,


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


what is the diff b/w select stsmt and cursor ?

2 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


Categories