I have a script that processes a hierarchically organized dataset. It prints one line for each record. The line is first printed when processing of that record begins, then