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
how do you define single dimensional array and multidimensional array in your cobol?
How do you differentiate between cobol and cobol-ii?
what happens if parmparameter passes zero bytes to the program
What is the difference between PIC 9.99 and PIC9v99?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
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?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how to access the file from prodution from changeman tool and to submit a file to production
A table has two indexes defined. Which one will be used by the SEARCH?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How to remove 2 duplicate records and copy only one using job control language?
What is redefines clause in COBOL?
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
How do you get the data to code the BMS macro?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?