Reading packed data with VB
"We have a file from mvs with packed data on it and we would like to load via vb to oracle. Does anybody know of any routines that could handle this?" If I'm not mistaking, packed data puts one (0-9) digit in each 4 bits, so you could read the packed data as string * 1 chunks, and obtain the value for the two digits like this:
Author: Francois RoyDigit1% = Asc(TheByte$) \ 16 Digit2% = Asc(TheByte$) Mod 16 |
||
Editor: Francois Roy Last update: 2024-12-26 Copyright 1995-2024 VBI |