Oops, that's supposed to be a "4", not an 8. basically, the keys are usually
7 digits long (like 1951423). I'm unsure if I'm supposed to add in the "01" or
not, so, I've tried it both ways, neither of which works...
Braun Brelin
Quoting "Emerson, Tom" <[log in to unmask]>:
> > -----Original Message-----
> > From: Braun Brelin [mailto:[log in to unmask]]
> >
> > I'm using a perl program on an HP3000. [...]
> > The problem I'm having is that one of my tables has a key
> > that looks like the following:
> >
> > E-PAT-ACCT-NBR CHARACTER 8
> [and I'm presuming "broken down as:" ... ]
> > .ENTITY-ID CHARACTER 2
> > PAT-ACCT-NBR PACKED UNSIGNED 6
> >
> > So, basically, the key consists of a two byte character
> > [...] and a packed unsigned field. [...]
> > I tried doing a pack("H8",$key)
>
> I'm not a perl expert, but in just reading this part alone, I get the
> impression you're trying to include the initial two-characters [the
> hard-coded "01"] as part of the data "to be packed", rather than appending a
> 12-digit packed field to a two-character constant string.
>
> OR is it the case that the overall "account" number is really an 8-digit
> value, of which the first two digits are "01"? This would create a 4-byte
> key value, not an 8-byte value.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|