HP3000-L Archives

May 2002, Week 1

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:
Robert Mills <[log in to unmask]>
Reply To:
Robert Mills <[log in to unmask]>
Date:
Thu, 2 May 2002 15:24:12 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
Lynn,

The following extract is from 'TurboIMAGE/XL Database Management System
Reference Manual Edition 7, HP Part Number: 30391-90011, Printed in U.S.A.
March 2000' (also available for download from : http://docs.hp.com/):

'sub-item count' is an integer from 1 to 255 that denotes the number of
sub-items within an item. If omitted, the sub-item-count equals one by
default. A data item whose sub-item count is 1 is a simple item. If the
sub-item count is greater than 1, it is a compound item.

'sub-item length' is an integer from 1 to 255. It is the number of
halfwords, bytes, or nibbles (depending on the type designator) in a
sub-item. If omitted, it is equal to 1 by default.

'type designator' defines the form in which a sub-item value is represented
in the computer. The type designators E, I, J, K, P, R, U, X, and Z are
described in Type Designators in the section "Data Item Length."

'Data Item Length' A data item must be an integral number of halfwords in
length regardless of the type designator and its unit of measure. In other
words, data items of type P, which are measured in nibbles, must have a
sub-item length and sub-item count such that their product is evenly
divisible by 4, because 4 nibbles equal 1 halfword. Data items of type U, X,
or Z, which are measured in bytes, must have a sub-item length and sub-item
count such that their product is an even number. If a data item is defined
as U3, it cannot be a simple item and must have an even numbered sub-item
count so that the data item length is an integral number of halfwords.
A data item cannot exceed 2047 halfwords in length. The entire item, whether
simple or compound, is always handled as a unit by TurboIMAGE/XL.

regards,

Robert W.Mills
Systems Development Manager
Windsong Services

-----Original Message-----
From: Lynn Price [mailto:[log in to unmask]]
Sent: 02 May 2002 15:24
To: [log in to unmask]
Subject: Adager - SubItemCount


I am trying to add a new dataset and have a question. When I try to define
the Item "H-SSN", I am using X9 as my definition. I get the message that an
"X-Type must have an even number of total bytes". I am not sure what the
SubItemCount is, but I assumed it was the order of my field in the dataset
(which should be 1st). I haven't found anything in the Adager Guide about
SubItemCount (perhaps I am missing it). Can anyone clear this up for me? I
know that my definition (SubItemCount * SubItemLength) must be even, but I
am not sure how to define a "PIC X(9)" field in my COBOL Progam to match
this field in my dataset AND get an even #.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2