Are you using RPG for this or something else?
When you say it’s in a data structure – it sounds like it’s in RPG ???
Are all the elements of the structure character???
Do you need your text file on the 400 or are you sending it somewhere/somehow?