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 are the rules of the move verb?
What is the Purpose of Pointer in the string?
Why did you choose to work with ibm mainframe cobol programming?
What are the pertinent COBOL
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Can you please let me know the centre name of INS certification in Kolkata.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the usage of comp fields in cobol?
What is the difference between next sentence and continue in cobol programing language?
how do you reference the esds vsam file formats from cobol programs
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is static and dynamic call in cobol?
How arrays can be defined in COBOL?