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 is an in line perform? When would you use it? Anything else you wish to say about it.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Are you comfortable in cobol or jcl?
What are all the divisions of a COBOL program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between PIC 9.99 and PIC9v99?
how to access the file from prodution from changeman tool and to submit a file to production
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is redefines clause in COBOL?
Define cobol?
what is the use of outrecord?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are the different rules to perform a Search?
How many sections are there in data division in COBOL?