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 / rahul

as the variable W-NUM is single digit (PIC 9), it will
never be greater than 9. Hence the loop will be infinite.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to access the file from prodution from changeman tool and to submit a file to production

6686


Which is not true about evaluate statement

1588


example for sub strings ? and refernce modifications whit output pls

1846


State the various causes of s0c1, s0c5 and s0c7.

665


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691






) How do u handle errors in BMS macro?

1429


What is amode(31)

724


What is the difference between PIC 9.99 and 9v99 in COBOL?

735


how do you reference the esds vsam file formats from cobol programs

634


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5695


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


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


What are the different rules to perform a Search?

619


What is an in line perform? When would you use it? Anything else you wish to say about it.

649