How to find a phrase and pull all lines that follow until the phrase occurs again?

view story

http://www.unix.com – I want to burst a report by using the page number value in the report header. Each section starts with Code: *PAGE NO:* 1 Each section might have several pages, but the next section always starts back at 1. So I want to find the "*PAGE NO:* 1" value and pull all lines that follow until "*PAGE NO:* 1" appears again. I've tried using awk search for the phrase and pull newline characters but I can't rely on a set number of lines that follow the phrase. Thank you! -Scottie1954 (HowTos)