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
For rewrite, why is it mandatory that file needs to be opened?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How do you reference the following file formats from cobol programs?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
what is the use of outrecord?
How do you reference the fixed block file formats from cobol programs
) what is the difference between AID and HANDLE AID?
What is a scope terminator give example?
IF I mention stop run in CICS what happens?