[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] tree data, embedding a language or string interpol
From: |
john Culleton |
Subject: |
Re: [open-cobol-list] tree data, embedding a language or string interpolation? |
Date: |
Mon, 18 Mar 2013 10:02:34 -0400 |
On Mon, 18 Mar 2013 11:34:41 +0000 (GMT)
Dave Stratford <address@hidden> wrote:
> On 17 Mar, john Culleton <address@hidden> wrote:
>
> <Large snip>
>
> > 02 main-key pic x10.
> > 02 sub-area redefines main-key.
> > 03 primary-number pic x(5).
> > 03 sub-number pic x(5).
>
> > This takes up 10 bytes total. main-key is the primary key (must
> > be unique) and primary-number and sub-number are alternate keys
> > that allow for duplication.
>
> Um, wouldn't
>
> 02 main-key.
> 03 primary-number pic x(5).
> 03 sub-number pic x(5).
>
> Have been more effecient? Here main-key is still, logicall, x(10),
> and can be accessed as such. You don't need sub-area, so removing
> both you also get rid of the redefines. For this particular
> definition they don't appear to be necessary.
>
> Dave
Without testing---
Can a group item be used as an ISAM primary key in OC? I know
split keys are not implemented.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html