|
Would something like this work?
1-Define an array(ARAC) of 110 absence codes.
2-Define an array(ARCAT) of 55 categories with two fields:
a-ARAC and the
b-category code.
3- Do a Read Loop through the Category file, at each new category:
a-using a FOR loop, load ARAC(i) with the absence codes.
b-Sort ARAC.
c-load ARCAT(j) with ARAC and the current category code.
4-Once the Read Loop is completed sort ARCAT.
5-Print ARCAT.
6-Duplicates should be grouped together.
-----Original Message-----days
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dennis
Sent: Friday, June 03, 2011 12:40 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Identifying unique sets of combinations
We have a table as part of our HR system that is used to categorize
off. For example, "S" (for sick) is in the SCKAC, USEDS, VACCK and14 other
categories (I know, I know). V(acation) is in 7 categories, and soon.
These things are categorized in such a way because they intersect somuch.
For example, a Carry-over vacation day and a Vacation day each havethe same
effect in terms of Vacation Balance, but very different effects whenit
comes to calculating next year's new balance.different
In all, there are 110 absence codes that are grouped into 55
categories. In an effort to simplify all of this, I've been asked to(In
identify categories that share common members, with no exceptions.
other words, if categories AAA, ABB and ACC all contain V and C, andnone of
them contain anything else, they are exact duplicates.)category
By the same token, If V and G are in 5 categories, but a sixth
lacks G, the powers that be would like this noted also.what's left
I'm sure there's a way to get to this answer and still maintain
of my sanity (many of you realize that there's little left), but Ihave not
yet landed on it. I thought SQL might get me to the answer mostreadily,
but try as I might I haven't found a workable solution yet; my CTEsquickly
get too complex for me to follow. (See prior note on sanity.) Pivottable
doesn't seem quite right (though it may help); counts are notdefinitive
enough...situation,
So I thought I'd come to this group; see if you've had a similar
and might be willing to share how you arrived at a solution.
Thanks!
--
Booth Martin
802-461-5349
http://www.martinvt.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.