Current version of the script will not work if the "illegal" observations are not consecutive.
i.e. if 14 is the new highest allowed observation
14 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9
15 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9
16 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9
the script will work and remove 15 and 16
However, when the file is like this, the code will not work, since it will only look for 15 and not 16.
Need to change the loop so it will recognize this issue
Current version of the script will not work if the "illegal" observations are not consecutive.
i.e. if 14 is the new highest allowed observation 14 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 15 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 16 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 the script will work and remove 15 and 16
However, when the file is like this, the code will not work, since it will only look for 15 and not 16. Need to change the loop so it will recognize this issue
14 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 16 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9