Hi Pete, I suspect you need some parens in the UNTIL - like: UNTIL (a=la AND b=lb AND t=lt) OR MinNum> 85 Joe Wilkins Peter wrote: > Hi Gang > I need to evaluate different conditions in a DO UNTIL Loop > for example I need to have either 3 conditions met or another condition > > EXAMPLE > DO > MinNum = MinNum+4 > READ a,b,t,p > UNTIL a=la AND b=lb AND t=lt OR MinNum> 85 > > first condition:- a=la AND b=lb AND t=lt > > second condition:-MinNum> 85 > > but the loop ignores second condition and runs out of data > > is there a mechanism for [a=la AND b=lb AND t=lt] OR MinNum> 85 > > Triple Pete > > -- > >