if a=b how the flow will complete???

perform test through test-exit.
perform activa through activa-exit.

test.

if a=b then
next sentence
else
move a to c.
test-exit.
exit.

activa.
--
--
activa-exit.
exit.



if a=b how the flow will complete??? perform test through test-exit. perform activa through act..

Answer / subbu

It will come out of the activa-exit.

Mans a the condition is a=b fist it will perform "perform
test through test-exit."

if a=b then
next sentence --> comes here
else
move a to c.
test-exit.
exit.


As it is satisfying the if part it should go to next
sentence i.e it will come out of the text-exit.

Now it will perform "perform activa through activa-exit."

so it will come out of the activa-exit.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More COBOL Interview Questions

IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


What is the default value of DISP parameter?

3 Answers   IBM,


what is the difference between external and global variables?

1 Answers  






What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


What is the maximum length of a field you can define using COMP-3?

4 Answers   Complex System, Infosys,


01 A pic 9(100) find record length of it

6 Answers   TCS,


How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp

3 Answers   CTS,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


How arrays can be defined in COBOL?

0 Answers  


consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

3 Answers   TCS,


Categories