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

FTP file from PC to mainframe with LF


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Thu May 10, 2012 8:48 am
Reply with quote

Hello everyone , Good day!

I'm trying FTP file from PC command prompt to mainframe
the file in PC is created by Unix and the end of line is LF

When I FTP to mainframe , only one record was transmitted,
I think I should change LF to CRLF , does anyone can help me , what command I should use when FTP ?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu May 10, 2012 11:45 am
Reply with quote

What do you mean by "only one record was transmitted"?

Why would you expect "CRLF" necessarily on the mainframe?

Can you post you FTP cards/results?

Can you post the definition of your receiving dataset on the mainframe?

Can you post anything else you think might be useful?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu May 10, 2012 2:44 pm
Reply with quote

IIRC, before starting the PUT on the PC FTP session, enter
Code:
quote site sbsendeol=lf
to change the line termination sequence. The default is CRLF, and if the file came from Unix as far as the PC is concerned there's only one record since there's no cr/lf characters in it. But you might want to check the FTP manual to be sure I've got the right parameter.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu May 10, 2012 3:47 pm
Reply with quote

chaoj wrote:
I think I should change LF to CRLF.


Yes, that's true. You must.

As Documented:

Quote:

Do not use an end-of-line sequence other than CRLF if the server is a z/OS FTP server. The z/OS FTP server supports only the CRLF value for incoming ASCII data.
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 How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top