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
What is the problem of ordered sequential files access?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how do you reference the ksds vsam file formats from cobol programs
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Discuss about changing dataset name in proc.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different rules to perform a Search?
what is the difference between COBOL2 AND COBOL390?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
i need a small 3d program using inline and outline.
Give some examples of command terminators?
Name some of the examples of COBOl 11?
Write the code implementing the perform … varying.
how do you reference the variable unblock file formats from cobol programs