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
 

 

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: 4649
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: 8117
Location: East Dubuque, Illinois, 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: 4649
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: 8117
Location: East Dubuque, Illinois, 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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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