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


Please Help Members By Posting Answers For Below Questions

For rewrite, why is it mandatory that file needs to be opened?

620


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2730


How do you reference the following file formats from cobol programs?

693


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8650


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

706






What is cobol?

744


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1612


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17031


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1953


what is the use of outrecord?

1769


How do you reference the fixed block file formats from cobol programs

703


) what is the difference between AID and HANDLE AID?

1634


What is a scope terminator give example?

655


IF I mention stop run in CICS what happens?

1895