Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SUM, showing pieces from multiple records for each result

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SUM, showing pieces from multiple records for each result
 Login/Join
 
Member
posted
I'm not sure if this is possible. I need to spin thru the following table summing NBR by TITLE. The table shows categories, some are "details" (type A) and some are "combinations" (type B). Details make up combinations, and for each detail category line, the "combinations" column contains which combinations they go into.

The report I'm trying to make would show the following:

For each "A" type, I show NBR and TITLE. For each "B" type, I show NBR, TITLE, and the respective DETAILS that it consists of. Problem is, the details are scattered throughout the entire table.

Representation of data:

IND NBR TITLE COMBINATIONS
---------------------------------
A 101 title1 B 103 B 105
A 102 title2 B 103
B 103 title3
A 104 title4 B 103
B 105 title5
A 106 title6 B 105
A 107 title7 B 103 B 105

Desired report output:

NBR TITLE DETAILS
-------------------------------
101 Title1
102 Title2
103 Title3 101, 102, 104, 107
104 Title4
105 Title5 101, 106, 107
106 Title6
107 Title7

Would I need to run thru once, table the NBR & TITLE, create a hold and then run through again looking for detail matches, or can this be done in one pass??
Thank you to any ideas.

This message has been edited. Last edited by: CD960,


Cobol, Foc 7.6.5, VBA
all Outputs
 
Posts: 3 | Registered: February 15, 2011Report This Post
Expert
posted Hide Post
What's your MFD look like? It looks like your data is rather random, is it really?

Post a copy of your MFD for us to see.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Yeah, it does look a bit messy, but the data is actually that random. What holds it together is a sequence number that I didn't mention, which will not be displayed in the output. This is the MFD:

SEGNAME=ONE,SEGTYPE=S0,$
FIELD=SEQ_NO , ,A4 ,A4 ,$
FIELD=CAT_TYPE , ,A2 ,A2 ,$
FIELD=CAT_NBR , ,A4 ,A4 ,$
FIELD=CAT_NAME , ,A36 ,A36 ,$
FIELD=CATEGS , ,A150 ,A150 ,$
SEGNAME=TWO,SEGTYPE=S0,PARENT=ONE,POSITION=CATEGS,OCCURS=25,$
FIELD=GEN_CAT_TYPE, ,A2 ,A2 ,$
FIELD=GEN_DETL_CAT, ,A4 ,A4 ,$
FIELD=CATS ,ORDER ,I2 ,I4 ,$


Cobol, Foc 7.6.5, VBA
all Outputs
 
Posts: 3 | Registered: February 15, 2011Report This Post
Expert
posted Hide Post
I would suggest TABLEing out the details, Seg two, and creating a file that you can join to.

Then join CAT_TYPE + CAT_NBR to GEN_CAT_TYPE + GEN_DELT_CAT.

From there you can build the list of NBRs.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Waz,
Thanks for the tip, I figured it would be tough to do this in one pass. I'll see what I can do with a join.
Chris


Cobol, Foc 7.6.5, VBA
all Outputs
 
Posts: 3 | Registered: February 15, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SUM, showing pieces from multiple records for each result

Copyright © 1996-2020 Information Builders