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
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are all the divisions of a COBOL program?
how do you reference the printer file formats from cobol programs
How can you get the ksds file records into your cobol program?
how do you reference the fixed unblock file formats from cobol programs
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the usage of comp fields in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Explain how to differentiate call by context by comparing it to other calls?
State the various causes of s0c1, s0c5 and s0c7.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Write a program to explain size error.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the variable block file formats from cobol programs
how to move the records from file to array table. give with code example