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
 

 

FTP file from PC to mainframe with LF

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP file from PC to mainframe with LF
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Thu May 10, 2012 11:45 am    Post subject: Reply to: FTP file from PC to mainframe with LF
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: 7936
Location: Bellevue, IA

PostPosted: Thu May 10, 2012 2:44 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu May 10, 2012 3:47 pm    Post subject: Re: FTP file from PC to mainframe with LF
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


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