Hi Crispin.
Just realised I never replied to your response.
I was looking for a solution to use existing print files, containing overly-complex logic, to push the same data to an XML file, instead of coding from scratch and copy and pasting code in.
I ended up using a *Y spec entry to perform a scan of the source, so where each print line was being written I added in a MOVE to store the record format content, that would allow me to process, into XML, the data fields I needed using a file field definition table that holds the relevant tag information.
So I did not need the record format name any more as I merely re-programmed the source to output what I wanted.
A few anomalies occur using a print file though due some strange legacy code to try and control the data flow within, but these were overcome in time.
Sean