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
What are the different data types in cobol?
example for sub strings ? and refernce modifications whit output pls
What the difference is between continue and next sentence?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the difference between PIC 9.99 and PIC9v99?
What is redefines clause in COBOL?
what is amode(24), amode(31), rmode(24) and rmode(any)?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How do you differentiate between cobol and cobol-ii?
What is the difference between structured cobol programming and object alternativelyiented cobol?
HOw can I get the negative sign while deduct high value from low value
What are the various section in data division and briefly explain them.
What is report-item in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?