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
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are 77 levels used for?
When is inspect verb is used in cobol?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Why would you use find and get rather than to obtain?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
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?
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 rules are to be followed while using the corresponding options?
How do you reference the fixed block file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between Global and External Variables?
What is a scope terminator give example?