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 / guna
9 times.
Initially, W-Num value will be 1.
1>9, so para will be executed. - 1 time
2>9, so para will be executed. - 2 times
3>9, so para will be executed. - 3 times
4>9, so para will be executed. - 4 times
5>9, so para will be executed. - 5 times
6>9, so para will be executed. - 6 times
7>9, so para will be executed. - 7 times
8>9, so para will be executed. - 8 times
9>9, so para will be executed. - 9 times
10>9, so para will not be executed
so para is executed for 9 times.
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between comp and comp-3?
What is a scope terminator give example?
Write a program to explain size error.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how do you reference the fixed unblock file formats from cobol programs
What is a report item?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the local-storage section?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
In COBOL, what is the different between index and subscript?
What is the difference between external and global variables in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to know whether the module is dynamical or statistical?