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 u list the abended jobs?

1 Answers   IBM,


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


How to pass return codes from cobol to jcl?

5 Answers  


I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest

2 Answers   IBM,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,






What is the utilization of copybook in cobol?

0 Answers  


study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid

4 Answers   TCS,


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,


In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference

3 Answers   IBM,


give the examples of strings in cobol

1 Answers   IBM,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


what are the isolation levels and where we use it in the db2 program

3 Answers   TCS,


Categories