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 the difference between goback, stop run and exit program in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How arrays can be defined in COBOL?
What are the different open modes available in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What are the various section in data division and briefly explain them.
What is the difference between structured cobol programming and object alternativelyiented cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What do you understand by psb and acb?
What are the access modes of START statement?
A table has two indexes defined. Which one will be used by the SEARCH?
What is a report item?
how do you reference the fixed unblock file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
IF I mention stop run in CICS what happens?