IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP from Mainframe to server; remove CRLF from last line


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
camplate

New User


Joined: 23 Jan 2007
Posts: 1
Location: Pennsylvania

PostPosted: Thu Sep 03, 2009 2:11 am
Reply with quote

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:
DETAIL001
DETAIL002

When I FTP the file the ASCII file will has
DETAIL001x’0D0A’
DETAIL002x’0D0A’

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.

Any help would be appreciated.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 03, 2009 2:25 am
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top