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

Removing blank line from FTP'd file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue May 19, 2009 4:25 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue May 19, 2009 4:57 pm
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

Global Moderator


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

PostPosted: Tue May 19, 2009 5:00 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue May 19, 2009 5:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top