home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!bvl!news
- From: vasco@jessica.bvl.pt (Antonio Vasconcelos)
- Subject: Re: EBCDIC to ASCII Conversion
- Message-ID: <1992Nov9.184843.888@bvl.pt>
- Sender: news@bvl.pt
- Reply-To: vasco@jessica.bvl.pt (Antonio Vasconcelos)
- Organization: Bolsa de Valores de Lisboa
- References: <1992Nov5.122240@betsy.gsfc.nasa.gov>
- Date: Mon, 9 Nov 1992 18:48:43 GMT
- Lines: 17
-
-
- >Does anyone know of a good way to convert EBCDIC characters to ASCII?
- >I have the unfortunate need to transfer binary files from an IBM mainframe
- >to our UNIX machines.
-
- Try to use the 'dd' tool
-
- dd if=ebcdic_file of=ascii_file conv=ascii
-
- However this MAY not work for you, take a look at your manual and check
- what they say about the dd options 'ascii', 'ebcdic', 'block' and 'cbs'.
- If you don't set the cbs parameter you should have a byte-to-byte conversion.
-
- regards,
-
- |/asco
-
-