PACKED fields to unpacked

Ed Ackerman Programmer ela at bdgltd.uucp
Wed Aug 15 01:42:47 AEST 1990


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 at dsi.com or ...!dsinc!bdgltd!ela|  foolproof beacause fools are  
#include <StdDisclaimer>                  |           SO ingenious!



More information about the Comp.lang.c mailing list