Pakistan began the day having not started their second innings and crept along to 41 without loss before rain forced the players off for an early lunch.
With England looking flat, both Pakistan openers looked comfortable although Anderson was denied a wicket in his third over of the day when Shan Masood edged behind but Jos Buttler failed to pouch what looked like a routine catch.
When play resumed some three hours later after groundstaff mopped up the pitch, it was Anderson’s partner in crime Stuart Broad who made the initial breakthrough, nipping one back to Masood who was out lbw for 18 not playing a shot.
Despite the lack of runs it was the longest opening stand against England since June 2016, spanning 23.4 overs.
Spinner Dom Bess whirled away without success in a soporific afternoon session as Ali edged towards a half-century.
But with the old ball finally beginning to swing, Anderson then pinned him in front of his stumps and umpire Michael Gough raised his finger. Pakistan reviewed but the ball was shown to be just clipping leg stump.
Anderson only managed one more over, however, before bad light and rain ended the day’s play with Pakistan’s captain Azhar Ali, a centurion in the first innings, on 29.
Anderson will hope that the weather forecast for Tuesday improves so that he gets the chance to reach another milestone.
Already England’s leading Test wicket taker, Anderson is behind only spinners Muttiah Muralitharan (800) of Sri Lanka, Australia’s Shane Warne (708) and India’s Anil Kumble (619).