Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bdgltd!bdgltd.uucp From: ela@bdgltd.uucp (Ed Ackerman Programmer) Newsgroups: comp.lang.c Subject: PACKED fields to unpacked Message-ID: <254@bdgltd.UUCP> Date: 14 Aug 90 15:42:47 GMT Sender: ela@bdgltd.UUCP Organization: Bureau of Dangerous Goods Ltd. Lines: 12 I am trying to take a 9 track tape from an IBM mainframe and convert it to a straight ACSII file. The problem is that some (Most) of the fields are in packed decimal format ie. COMP-3. I can handle the text translation and I can handle the byte swaping (MSB-LSB) the problem is in unpacking the fields. DOes anyone have any advice on the best way to handle this?? All help welcome ----------------------------------------------------------------------------- Ed Ackerman | It is impossible to make anything bdgltd!ela@dsi.com or ...!dsinc!bdgltd!ela| foolproof beacause fools are #include | SO ingenious!