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
 
Removing blank line from FTP'd file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
jiteshpchavan

New User


Joined: 05 Mar 2009
Posts: 2
Location: mumbai

PostPosted: Tue May 19, 2009 11:15 am    Post subject: Removing blank line from FTP'd file
Reply with quote

One of the requirement is to transfer a mainframe data file to a server. When we transferred the data file to server format, we found that one additional blank record got added after the trailer record. We verified the mainframe for this, there was no blank record at end of file.
This additional blank record resulted in data warehouse load error. This extra blank line may be a EOF or CR character.

Pls let us know the solution to take care of this situation from mainframe end.

Thank you.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue May 19, 2009 4:25 pm    Post subject: Reply to: Removing blank line from FTP'd file
Reply with quote

What did the end of the file actually look like on the server? It would be helpful to know what you believe the problem is and what you think should be done. If you

Quote:

verified the mainframe for this, there was no blank record at end of file


then why don't you think that maybe this is a problem with the server, not the mainframe?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue May 19, 2009 4:57 pm    Post subject:
Reply with quote

You may or may not be able to handle this on the mainframe end. You need to check the FTP options in use at your site -- some of them can affect the results of file transfers. However, you also need to check the options on the server you're sending to -- those options can also impact the results.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue May 19, 2009 5:00 pm    Post subject: Reply to: Removing blank line from FTP'd file
Reply with quote

Robert, correct me if I'm wrong, but don't most of the ASCII-based servers require a CR/LF at the end of each record, plus a Ctrl-Z at the end-of-file. With the possible exception of some Unix systems. No?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue May 19, 2009 5:12 pm    Post subject:
Reply with quote

Kevin, Unix systems use LF only while Windows systems use CR/LF. I'm not sure about other ASCII-based systems. I believe the CTRL-Z is EOF for both Unix and Windows systems (although I haven't had a chance to verify that -- I'm at home this morning). There's generally some FTP options to specify the record terminator.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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