How to read packed decimal / packed integer format in R

602 Views Asked by At

I have to read data from an archaic fixed-width table. Some of the fields are in the IBM packed decimal Format, and I have no idea how to get the numbers.

for example, one line of my Input file might look like this:

140101   72      ‘ëm§11  

where ‘ëm§1 is actually the packed decimal representation of the number 3153947. SAS can read this field correctly via INPUT gew pd4.4

Anyone any expericnes with this issue?

0

There are 0 best solutions below