Joined: 23 Jan 2007 Posts: 1 Location: Pennsylvania
I am FTP a file from my mainframe to client's server. But I have a requirement where the client wants each line of an ASCII file to have CRLF, except the last line. For example the mainframe file will have two lines:
When I FTP the file the ASCII file will has
So the ASCII text file now has three lines.
I don’t know how to remove the last CRLF. I’ve been reading through the posts; saw a suggestion to look at SBSENDEOL but that won’t help since I need the x’0D0A’ on the other lines.
Joined: 06 Jun 2008 Posts: 8344 Location: Dubuque, Iowa, USA
If the client's server recognizes MBREQUIRELASTEOL as an FTP configuration parameter, then their server must have this value set to FALSE either by default or by override in order to not have an end of line marker on the last record. You can try sending SITE MBREQUIRELASTEOL FALSE in your FTP job but if it doesn't work, either the client system doesn't support this feature or their system is preventing it from taking effect.