IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 20
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

Active Member


Joined: 29 Apr 2008
Posts: 876
Location: Maryland

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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
No new posts How to find which file contains my se... DFSORT/ICETOOL 6
No new posts IGZ0035S THERE WAS AN UNSUCCESSFUL OP... COBOL Programming 3
No new posts Hex Value - vb file replace old date ... DFSORT/ICETOOL 14
No new posts Related to using a file in comparison JCL & VSAM 7

Back to Top