Consider the following:

77 W-NUM PIC 9 VALUE 0
------
MOVE 1 TO W-NUM
PERFORM PARA-X UNTIL W-NUM > 9.
------
PARA-X
ADD 1 TO W-NUM

How many times PARA-X is executed ?

Answer Posted / guest

it will go in a infinite loop. But simply because
when W-NUM is 9, after "ADD 1 TO W-NUM", W_NUM would again
become 0.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For rewrite, why is it mandatory that file needs to be opened?

623


how do you reference the printer file formats from cobol programs

667


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


Write a cobol program making use of the redefine clause.

738






Write the code implementing the perform … varying.

646


What is rmode(any) ?

686


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


i need a small 3d program using inline and outline.

1640


how do you reference the variable unblock file formats from cobol programs

750


How arrays can be defined in COBOL?

665


How do you differentiate between cobol and cobol-ii?

658


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


) what is the difference between AID and HANDLE AID?

1637


explain sorting techniques in cobol program?

692