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
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How many bytes S(8) comp field occupy and its maximum value?
Why occurs cannot be used in 01 level in COBOL?
Can we change the password using ALTER? anyone tried and changed?
Write a program that uses move corresponding.
) How do u handle errors in BMS macro?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How are the next sentence and continue different from each other?
How can you get the ksds file records into your cobol program?
What do you understand by psb and acb?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
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.
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 to use the same COBOL program in Batch and CICS on lines? explain with an example