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

How do you define a table/array in COBOL?

5 Answers   Hexaware,


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

0 Answers   Cap Gemini,


select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself

2 Answers  


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


What is Static,Dynamic linking ?

2 Answers  






How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

0 Answers  


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


How are the next sentence and continue different from each other?

0 Answers  


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


Categories