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 do you define a table/array in COBOL?

5 Answers   Hexaware,


In EBCDIC, how would the number 1234 be stored?

2 Answers   TCS,


How can we know that cobol program is using report file or simple file....?

4 Answers  


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


which is better comp or comp-3 in terms of memory utilization?

6 Answers  






what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C

3 Answers   TCS,


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 Answers  


I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??

2 Answers   HCL,


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?

6 Answers   Cognizant,


Categories