Consider the below example
call a-test1.
--
--
--
a-test1.
if a=b
perform a-test through a-exit
next sentence
else
if b=c
perform c-test through c-exit.
if a=d
perform d-test through d-exit.
a-test.
--
--
a-exit.
exit.
can u tell me what will happen if a=b
after looping into a-exit will the control go back to a-
test1.
will the condition a=d be checked???
Answer Posted / adarsha
NOP ! none of the above.. compiler Error !!!
When you are using NEXT SENTENCE or continue, their
shouldn't be any sentence/paragraph name or anything before
or after it with in that condition...
if a=b
NEXT SENTENCE
.
.
. should be the syntax ... perform a-test through a-exit
shouldn't be coded 1
hope it helps u !
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
A table has two indexes defined. Which one will be used by the SEARCH?
Can you please let me know the centre name of INS certification in Kolkata.
What is length is cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Why occurs cannot be used in 01 level in COBOL?
How to remove 2 duplicate records and copy only one using job control language?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
what is the difference between COBOL2 AND COBOL390?
What are the pertinent COBOL
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
State the various causes of s0c1, s0c5 and s0c7.
Why did you choose to work with ibm mainframe cobol programming?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are 77 levels used for?