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

Issue in SFTP a file


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

New User


Joined: 10 Jan 2006
Posts: 23
Location: India

PostPosted: Tue Feb 04, 2020 6:08 pm
Reply with quote

Hi ,

We have a file from Linux , when we FTP the file from Linux to mainframe . able to do it successfully .

File length 341 - An hex character at 332 X'0D'

In FTP method records are properly aligned in mainframe ,though have a hex a character.


But the same file using SFTP method , the records after 332 ,i.e from 333 moved to next record . For each record we have to records in mainframe after using the SFTP method in Linux .



Do we need settings required .
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Tue Feb 04, 2020 7:43 pm
Reply with quote

In BINARY transfer mode the byte X'0D' is transferred as it is.

In TEXT transfer mode the byte X'0D' is considered as "end of line", and causes new record to be created at this point.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
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
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top