View previous topic :: View next topic
|
Author |
Message |
jiteshpchavan
New User
Joined: 05 Mar 2009 Posts: 2 Location: mumbai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|