HP3000-L Archives

October 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Braun Brelin <[log in to unmask]>
Reply To:
Braun Brelin <[log in to unmask]>
Date:
Thu, 9 Oct 2003 18:49:24 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
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 *

ATOM RSS1 RSS2