Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8151
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 Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Technical Support Engineer (DB2 on z/... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:14 am
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us