I am using File Transfer 'Send to Host' within PASSPORT to transfer files from my PC into the mainframe. This uses the command 'IND$FILE PUT FILENAME.DATA ASCII CRLF' to transfer the data from my PC to the mainframe. I usually work with PC files I have created as CSV files to transfer my data. In this case, I have received a *.DAT file from another source that I need to transfer to the mainframe. It is variable length, delimited with a | rather than a comma. When I upload it with my usual settings, it does not seem to have an end-of-line marker and thus is wrapping the first few bytes of the next line onto the end of the previous one (see below for example or what the file looks like on the mainframe). This makes it impossible to read accurately on mainframe. In the past, when I've ran into this problem, I discovered I could export the file into Excel and rewrite it as a CSV so that when uploading I had the end-of-line markers I needed. This *.DAT file however is too big for me to read into Excel so that is not an option. My question is how can download this cleanly into the mainframe.
Can anyone help me with settings on the IND$FILE to allow my upload to work properly? In my File Transfer Scheme I have the File Type set to Text and the Host OS set to TSO. I have tried checking and emptying the check box for 'Remove End of File indicator on Receive'.