confuse about DO WHILE structure
Posted: Tue Oct 21, 2008 6:50 pm
how are you, guys, I have a question ask for yours help.
PERFORM 100-PROCESS-DATA UNTITL EOF='Y'.
eah cobol book says: this is a DO WHILE structure, but I think DO WHILE describ as following:
" loop body excute if condition is true, otherwise exit loop if condition is false."
but anybody knows that the above statement is loop body excute if condition(EOF='Y') is false,
when the condition is true, it will exit loop. as a result, the statement is not a DO WHILE structure,
anybody can tell me the answer? thanks first.
PERFORM 100-PROCESS-DATA UNTITL EOF='Y'.
eah cobol book says: this is a DO WHILE structure, but I think DO WHILE describ as following:
" loop body excute if condition is true, otherwise exit loop if condition is false."
but anybody knows that the above statement is loop body excute if condition(EOF='Y') is false,
when the condition is true, it will exit loop. as a result, the statement is not a DO WHILE structure,
anybody can tell me the answer? thanks first.