How to load field from a CSV Header record to all imported Detail records in the file
I'm loading a Fixed Width data file to Stage for Transaction matching.
This file has:
- HEADER record that has the transaction_date in it.
- multiple DETAIL records with transaction type and amounts (but no dates).
- TRAILER record (Ignore for this sample)
Goal - Load the DATE from header record on every detail record.
Sample File
HDR01122023
DTL0088351000000572975A000000018
DTL0088351000000123456A000000018
TRL000000
What I want to load into OneStream
Record_1:
Date: 01122023
Tran Type: 100
Amount: 572975
Record_2:
Date: 01122023
Tran Type: 100
Amount: 123456
