Apologies, the original .txt file is attached to my first posting. The second attachment shows how, perhaps, I'd like to amend that file to look like.
I'm afraid that we can't assume that "RP*" defines a header row, nor that " GB" prefixes each detail record, as all these codes may vary...