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 / hemanth reddy
It will execute 8 times.
Because Initially w_Num is 1 By checking 1 > 9 it will
execute the para-x and adding 1 to W-NUM
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Difference between cobol and cobol-ii?
What is the LINKAGE SECTION used in COBOL?
Write the code to count the sum of n natural numbers.
how to convert the recors form vsam file to db2 table tru file aid
What is cobol?
What is rmode(24)
What is the use of intialize verb?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
HOw can I get the negative sign while deduct high value from low value
State the various causes of s0c1, s0c5 and s0c7.
What is a SSRANGE and NOSSRANGE?
how do you define single dimensional array and multidimensional array in your cobol?