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
What are the different open modes available in cobol?
Write the code to count the sum of n natural numbers.
How arrays can be defined in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the LINKAGE SECTION used in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is a report item?
Difference between cobol and cobol-ii?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Mention the guidelines to write a structured cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Name the divisions, which are available in a cobol program?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?