New Zealand A are set up for an intriguing final day of their four-day match against Sri Lanka A at Dambulla.
The tourists require 425 to win with all wickets intact.
Sri Lanka A dismissed NZ A for 391 in their first innings earlier in the third day, establishing a 164-run lead.
Luke Ronchi completed a run-a-ball century finishing on 134, and there were minor contributions from Andrew Ellis and Ish Sodhi after Tom Latham had been dismissed at his overnight 77 in the day's first over.
Spinner Anton Devcich picked up three wickets as Sri Lanka rattled up 275 for four before the declaration.