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
Sorry i thought that it is < 9 .
If it is less than 9 it is correct.
If it is > 9 then it goes to infinite loop
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the different types of condition in cobol and write their forms.
What are the pertinent COBOL
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
HOw can I get the negative sign while deduct high value from low value
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is link edit in cobol?
what is search and searchall?what is the diffrence between them?give an best example?
What is the utilization of copybook in cobol?
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 ......
Define cobol?
How many sections are there in data division in COBOL?
Difference between cobol and cobol-ii?
What is the difference between next sentence and continue in cobol programing language?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?