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 / khasim
compile error.
d-test and d-exit. not defined in Procedure division.
if we code the d-test and d-exit.
control goes to d-exit. not goback to a-test1.
after d-exit, it will go back.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how to move the records from file to array table. give with code example
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
How do you get the data to code the BMS macro?
what is amode(24), amode(31), rmode(24) and rmode(any)?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is rmode(any) ?
For rewrite, why is it mandatory that file needs to be opened?
What is link edit in cobol?
What is a scope terminator give example?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between external and global variables in COBOL?