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
how to access the file from prodution from changeman tool and to submit a file to production
Which is not true about evaluate statement
example for sub strings ? and refernce modifications whit output pls
State the various causes of s0c1, s0c5 and s0c7.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
) How do u handle errors in BMS macro?
What is amode(31)
What is the difference between PIC 9.99 and 9v99 in COBOL?
how do you reference the esds vsam file formats from cobol programs
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.
For rewrite, why is it mandatory that file needs to be opened?
how do you reference the printer file formats from cobol programs
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.
What are the different rules to perform a Search?
What is an in line perform? When would you use it? Anything else you wish to say about it.