Xref: utzoo comp.unix.misc:222 comp.lang.c:32467 Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.misc,comp.lang.c Subject: Re: EBCDIC <--> ASCII conversion Message-ID: <1990Oct2.185212.25161@athena.mit.edu> Date: 2 Oct 90 18:52:12 GMT References: <1756@dinl.mmc.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 17 In article <1756@dinl.mmc.UUCP>, noren@dinl.uucp (Charles Noren) writes: |> We are communicating between Sun 3 (with SunOS 4.0.3) and an |> IBM Mainframe (don't know the model, we're not IBM jocks) |> via TCP/IP. Our question, is there any program in Netland |> that converts back and forth between EBCDIC and ASCII |> (preferrably in C, but we will take any example)? The Unix program "dd" does this. In particular, the "conv=ascii" option converts EBCDIC to ASCII, and the "conv=ebcdic" option goes the other way. See the man page for more information. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710