What is the difference between continue and next sentence in COBOL?
NEXT SENTENCE | CONTINUE |
---|---|
This statement passes the control after the next implicit scope terminator; i.e. period (.) | This passes the control after the next Explicit scope terminator. For example, END-IF, END-PERFORM, etc. |
It gives control to the verb which follows the next period. | This gives control to the next verb after the scope terminator. |
This will focus on the next step after the period no matter the number of controls present. | It will focus on scope terminators and other conditions first before going into other controls. |
BY Best Interview Question ON 06 May 2020