Re: removing nulls from a file

2012-01-03 Thread Frank Swarbrick
1 3:05 PM >Subject: Re: removing nulls from a file > >The first two bytes are 'FF FE'.  I tried saving it with UTF-8 and it removed >all the nulls and looks correct now.  Now just need to talk to the client to >do this when they save the file. > >Thanks for all the help. &

Re: removing nulls from a file

2011-12-30 Thread Clark Morris
On 30 Dec 2011 04:41:48 -0800, in bit.listserv.ibm-main you wrote: >In <8923397833474102.wa.bjwisnkiastate@bama.ua.edu>, on 12/29/2011 > at 09:19 AM, Brad Wissink said: > >>We have a client that is trying to transfer us a file and it is >>loaded with nulls. They say that is the way it come

Re: removing nulls from a file

2011-12-30 Thread Shmuel Metz (Seymour J.)
In <8923397833474102.wa.bjwisnkiastate@bama.ua.edu>, on 12/29/2011 at 09:19 AM, Brad Wissink said: >We have a client that is trying to transfer us a file and it is >loaded with nulls. They say that is the way it comes from the >purchased software they have on their workstation. The file

Re: removing nulls from a file

2011-12-29 Thread Wissink, Brad [ITSYS]
5-294-3088 -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of zMan Sent: Thursday, December 29, 2011 1:48 PM To: IBM-MAIN@bama.ua.edu Subject: Re: removing nulls from a file On Thu, Dec 29, 2011 at 1:18 PM, Frank Swarbrick wrote: > I ag

Re: removing nulls from a file

2011-12-29 Thread zMan
On Thu, Dec 29, 2011 at 1:18 PM, Frank Swarbrick wrote: > I agree, it looks like the original file is encoded in small-endian UTF-16. > If the file is generated on a Windows system and there's no way to change the > creating software to use UTF-8 or an ASCII code page (I'm betting there is, > if

Re: removing nulls from a file

2011-12-29 Thread Frank Swarbrick
From: "McKown, John" >To: IBM-MAIN@bama.ua.edu >Sent: Thursday, December 29, 2011 10:17 AM >Subject: Re: removing nulls from a file > >Sounds like the original file is UTF-16. The simpliest thing is to convert it >to UTF-8 before transferring. But I know that many

Re: removing nulls from a file

2011-12-29 Thread Steve Comstock
enabled ... Could be interesting Scott J Ford Software Engineer http://www.identityforge.com From: Joel C. Ewing To: IBM-MAIN@bama.ua.edu Sent: Thursday, December 29, 2011 12:10 PM Subject: Re: removing nulls from a file On 12/29/2011 09:19 AM, Brad Wissink

Re: removing nulls from a file

2011-12-29 Thread Ray Pearce
Could it be Unicode that has been translated to EBCDIC as if it were ASCII? Check the first two bytes, if they are FE FF then it was almost certainly Unicode. - This email has been scanned for all known viruses by the Message

Re: removing nulls from a file

2011-12-29 Thread Scott Ford
Software Engineer http://www.identityforge.com   From: Joel C. Ewing To: IBM-MAIN@bama.ua.edu Sent: Thursday, December 29, 2011 12:10 PM Subject: Re: removing nulls from a file On 12/29/2011 09:19 AM, Brad Wissink wrote: > We have a client that is trying to trans

Re: removing nulls from a file

2011-12-29 Thread McKown, John
e Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM > -Original Message- > From: IBM Mainframe Discussion List > [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Brad Wissink > Sent: Thursday, December 29

Re: removing nulls from a file

2011-12-29 Thread Joel C. Ewing
On 12/29/2011 09:19 AM, Brad Wissink wrote: We have a client that is trying to transfer us a file and it is loaded with nulls. They say that is the way it comes from the purchased software they have on their workstation. The file has a null character inserted after every character so it look

Re: removing nulls from a file

2011-12-29 Thread Paul Gilmartin
On Thu, 29 Dec 2011 10:39:13 -0600, Paul Gilmartin wrote: > >What about "tr -d \000"? (I haven't tried it.) > I've now tried it. Oops; forgot about shell escapes. It must be: "tr -d '\000'". (Easier than assembler or PL/I.) -- gil --

Re: removing nulls from a file

2011-12-29 Thread Paul Gilmartin
On Thu, 29 Dec 2011 09:19:30 -0600, Brad Wissink wrote: >We have a client that is trying to transfer us a file and it is loaded with >nulls. They say that is the way it comes from the purchased software they >have on their workstation. The file has a null character inserted after every >chara

Re: removing nulls from a file

2011-12-29 Thread Elardus Engelbrecht
Brad Wissink wrote: >We have a client that is trying to transfer us a file and it is loaded with >nulls. They say that is the way it comes from the purchased software they >have on their workstation. The file has a null character inserted after every >character so it looks like this Are they

Re: removing nulls from a file

2011-12-29 Thread John Gilmore
On a mainframe a small assembly-language routine that uses a TRTO instruction to views what you have as a DBCS and translates it into an SBCS, x'' to x'00', x'0100' to x'01', x'0200' into x'02', etc., would do what needs to be done. Be aware that C and other languages that support C's strings

removing nulls from a file

2011-12-29 Thread Brad Wissink
We have a client that is trying to transfer us a file and it is loaded with nulls. They say that is the way it comes from the purchased software they have on their workstation. The file has a null character inserted after every character so it looks like this 1 12/29/2011 becomes F1004000F