Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP from Mainframe to server; remove CRLF from last line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: FTP from Mainframe to server; remove CRLF from last line
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Sep 03, 2009 2:25 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us