home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16289 < prev    next >
Encoding:
Text File  |  1992-11-10  |  916 b   |  30 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!bvl!news
  3. From: vasco@jessica.bvl.pt (Antonio Vasconcelos)
  4. Subject: Re: EBCDIC to ASCII Conversion
  5. Message-ID: <1992Nov9.184843.888@bvl.pt>
  6. Sender: news@bvl.pt
  7. Reply-To: vasco@jessica.bvl.pt (Antonio Vasconcelos)
  8. Organization: Bolsa de Valores de Lisboa 
  9. References: <1992Nov5.122240@betsy.gsfc.nasa.gov>
  10. Date: Mon, 9 Nov 1992 18:48:43 GMT
  11. Lines: 17
  12.  
  13.  
  14. >Does anyone know of a good way to convert EBCDIC characters to ASCII?
  15. >I have the unfortunate need to transfer binary files from an IBM mainframe
  16. >to our UNIX machines.
  17.  
  18. Try to use the 'dd' tool
  19.  
  20.     dd if=ebcdic_file of=ascii_file conv=ascii
  21.  
  22. However this MAY not work for you, take a look at your manual and check
  23. what they say about the dd options 'ascii', 'ebcdic', 'block' and 'cbs'.
  24. If you don't set the cbs parameter you should have a byte-to-byte conversion.
  25.  
  26. regards,
  27.  
  28. |/asco
  29.  
  30.