Could you please let me know which version of Data transformation is used here? I mean if you are using 10.x versions, then you are working on Developer client tool (Data processor) and there you can use wizard option fro various input / output type and input port data type will automatically get selected.
Also, you may have a looks at the below KB:
Let me know if that helps.
We have 10.4 and tried the wizard tool. There are only a few options for reading binary files (Word files, etc). When I tried to use generic input, B2B read the file like a Notepad would. Meaning the file is not readable to human's eyes and there is no way for me to know where information starts or ends
As far as I understand the software, B2B DT has been designed to process text contents. So what you need is a so-called pre-processor which "translates" the X9 files into some readable format. Such a pre-processor (which is delivered by Informatica) is the PDF preprocessor which delivers the text contents of PDF files. You will need to create one for X9 files, probably.
Please don't ask me where in the documentation you can find information about pre-processor libraries, that's not my area of expertise.