create one observation per detail record, it is necessary to
distinguish between header and detail records. Having a field that
identifies the type of the record makes this task easier.
As you write the DATA step, use a RETAIN statement to retain header data in the PDV until the next ...