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

FTP binary value


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

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Thu Apr 05, 2012 11:14 am
Reply with quote

Hi,

I have a file in which there is a binary field. This field is S9(4) BINARY. I FTP this file using BINARY option to a UNIX server. When the file has a record with value X'0A' in the binary field, it gets tranfered as X'0D0A'. I think what happens here is X'0A' is line feed in ASCII and the ftp process adds a X'0D' which is a carriage return in front of the line feed before writing the file to unix.

Is there any way to avoid this?
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 Apr 05, 2012 1:03 pm
Reply with quote

Please show the FTP control cards you are using.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Apr 05, 2012 2:30 pm
Reply with quote

1. What you are saying makes absolutely no sense since Unix doesn't use carriage return / line feed for line terminators -- it uses ONLY a line feed. Windows uses the CR/LF, but not Unix. Furthermore, a binary transfer does ZERO character modification.

2. Are you pulling the file from the mainframe to the Unix server, or are you pushing the file -- if the Unix server is pulling the file, there is an FTP option for mainframe FTP that controls what, if any, line terminators are sent?
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 Binary to display characters SYNCSORT 3
No new posts Check Binary Values for symbols CA Products 3
No new posts resume binary ftp in z/os All Other Mainframe Topics 6
No new posts Casting a Binary Number to Numeric in... Java & MQSeries 6
No new posts MOVING COMP-3 into binary COBOL Programming 2
Search our Forums:

Back to Top