It's not clear to me where this "bad" conversion is happening and what you want instead.
Can you please explain all of the steps? ____ to UNIX file system via ____ UNIX file system to PC via FTP Where do the 0d0a's come from? Are they in the original data or inserted by ____? What would you prefer happen? BTW, you say a binary file. What is a binary file? Do you mean a file with non-graphic characters? Those files don't translate to ASCII worth a darn. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Taylor, Clarence B Sent: Monday, June 26, 2006 4:45 PM To: [email protected] Subject: Character set conversoin headaches I am attempting to transfer a binary file for my pc to a uss file and then convert it to ascii. There is a little issue, in that the CRLF sequences x'0d0a' are getting converted to '0d15'. When I ftp with ascii they get translated to '0D0A'. I do the translation in USS via the iconv utility, this causes the 0D15 sequence. iconv -f ISO8859-1 -t IBM-1047 asm.sh > ../asm.sh I have also tried IBM-037. The short version as to why, is that I am creating an archive file on the PC (actually a WAR file via ANT) and then doing the binary transfer, so that the un-waring (JAR -XF file.ext) creates the identical build directory structure under uss as I had on the PC. I then need to go thru and convert specific files that are ascii, to ebcdic. Depending upon the USS utility that is being used, it may or may not recognize the '0D15' as being the same as '0D0A'. I could write a custom utility to convert the '0D15' to 0D0A, but was kinda hoping there was a standard utility to do this. Thank you Brad Taylor ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

