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 binary value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP binary value
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Apr 05, 2012 1:03 pm    Post subject: Reply to: FTP binary value
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: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 05, 2012 2:30 pm    Post subject:
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    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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts resume binary ftp in z/os meykh2014 All Other Mainframe Topics 6 Sun Jan 22, 2017 10:01 am
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts MOVING COMP-3 into binary akodakka COBOL Programming 2 Tue Dec 01, 2015 5:02 pm
No new posts USS Shell script:Convert hex to binar... RSR2015 All Other Mainframe Topics 0 Fri Sep 18, 2015 2:00 am


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