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 / uday
if a=b the loop will be executed(a-test) and then control will
comeback to the loop.here next sentence is used thats why the
control is going to execute statements after end-if ,if any.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is perform what is varying?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the difference between external and global variables in COBOL?
Name the sections present in data division.
What is the difference between PIC 9.99 and PIC9v99?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
what are decleratives in cobol?
How do define dynamic array in cobol.
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What is rmode(any) ?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are the cobol coding sheets?