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.
Record1Field1|Record1Field2|Record1Field3|Recor
d2Field1|Record2Field2|Record2Field3|Record3Fie
ld1|Record3Field2|Record3Field3|Record4Field1|R
ecord4Field2|Record4Field3
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'.