There are many formats for EDI files ... generally set by the partners (sender & receiver). So like many things in SQL the phrase "It depends" applies to your request.
To help those who can and will help you can you supply a sample of the file ?
Be sure NOT to include any propriatory data, or data which can iidentify a particular individual and / or business.
With that data I am sure someone will assist you.