Girishm
New User
Joined: 09 Mar 2005 Posts: 35 Location: Mysore
|
|
|
|
hi,
It is possible to break Do..While loop once your condition is met.
You need to code a go to statement, if your condition get satisfied.
For example consider the following code:
...
Do while NOT EOF (file-name)
...
...
...
...
IF dept = 420 (assume this as your break condition)
GO TO Continue (give a labeel name, to break the loop)
END-IF
...
...
END-DO
Continue.
..
.. (here your rest of the code)
Hope it helps you:)-
Girish |
|