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'0000' 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 of
"conceptually unlimited length" use nuls to delimit EOS.  The TRTO
table entry for x'0000'==>x'00' is thus very important.

This routine could also be written in PL/I, which has a BIF for
DBCS-to-SBCS translation.

John Gilmore, Ashland, MA 01721 - USA

On 12/29/11, Brad Wissink <[email protected]> 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
>
> 1 12/29/2011   becomes
> F1004000F100F2006100F200F9006100F200F000F100F100.......
>
> Has anyone seen anything like this before?  Is there a quick and easy way to
> remove all the nulls?
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>


-- 
John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to