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


Please Help Members By Posting Answers For Below Questions

how do you define single dimensional array and multidimensional array in your cobol?

683


How do you differentiate between cobol and cobol-ii?

658


what happens if parmparameter passes zero bytes to the program

1669


What is the difference between PIC 9.99 and PIC9v99?

783


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

2734






here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6841


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


how to access the file from prodution from changeman tool and to submit a file to production

6692


A table has two indexes defined. Which one will be used by the SEARCH?

759


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

722


How to remove 2 duplicate records and copy only one using job control language?

755


What is redefines clause in COBOL?

851


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2125


How do you get the data to code the BMS macro?

1478


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

645