What is the difference between NEXT SENTENCE and CONTINUE?
Answers were Sorted based on User's Feedback
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 |
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 |
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.
What is XDC ?
Difference between array and sub-script ?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
what is the diff b/w select stsmt and cursor ?
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?
State the various causes of s0c1, s0c5 and s0c7.
How to Pass table from a cobol program to another cobol program and how to use that table in called program
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 ?