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


Please Help Members By Posting Answers For Below Questions

A table has two indexes defined. Which one will be used by the SEARCH?

748


Can you please let me know the centre name of INS certification in Kolkata.

1708


What is length is cobol?

639


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

984


Why occurs cannot be used in 01 level in COBOL?

707






How to remove 2 duplicate records and copy only one using job control language?

730


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?

883


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

671


what is the difference between COBOL2 AND COBOL390?

2441


What are the pertinent COBOL

2035


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696


State the various causes of s0c1, s0c5 and s0c7.

656


Why did you choose to work with ibm mainframe cobol programming?

624


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

764


What are 77 levels used for?

650