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     [SOLVED] Easier way to pull records?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Easier way to pull records?
 Login/Join
 
Silver Member
posted
I have a table that is set up like below:

COUNTRY SEQ_NO CAR RETAIL_COST
ENGLAND 1 JAGUAR 8,878
ENGLAND 2 JENSEN 17,850
ENGLAND 3 TRIUMPH 5,100
JAPAN 1 DATSUN 3,139
JAPAN 2 TOYOTA 3,339


Currently I have a report that does seven passes against this table and joins that data back to the original table request to get the data needed. This seems very time consuming process and it seems like there can be a better way.

I know you can do a table request like the following to get the all the data listed out in an easy manner, but I don’t have an easy way to use it in the report since the column headers are all the same names.

TABLE FILE CAR
SUM
CAR
RETAIL_COST
BY COUNTRY
ACROSS SEQ_NO NOPRINT
END

What I was wondering is if there was an easier way to be able to do one pass against the table and pull out the data that I need so the report isn't doing so many passes against the same table. I would love to be able to get the output like the following:

COUNTRY CAR1 RETAIL_COST1 CAR2 RETAIL_COST2 CAR3 RETAIL_COST3
ENGLAND JAGUAR 8,878 JENSEN 17,850 TRIUMPH 5,100
JAPAN DATSUN 3,139 TOYOTA 3,339


Does anyone know a way that this can be achieved?

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


WebFocus 7.7.03 - 7703_hotfix - Gen: 284
Dev Studio 7.7.03 - Gen: 06062011
Mainframe Focus 7.7.03
Windows WF Client Server
zOS Reporting server (hub-sub config)
Windows Reporting server
Windows RC Client Server
 
Posts: 30 | Location: Portland, Oregon, USA | Registered: September 11, 2009Report This Post
Master
posted Hide Post
May be hold that main table data in a HOLD file with format FOCUS and index necessary fields. This way you will access the main table only once and report runs faster because of FOCUS database


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Virtuoso
posted Hide Post
Look up SET ASNAMES
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
quote:
Originally posted by Enigma006:
May be hold that main table data in a HOLD file with format FOCUS and index necessary fields. This way you will access the main table only once and report runs faster because of FOCUS database


I ended up doing this and saving the focus created master to take a look at it. Based on what focus created, it did exactly what I needed it to do with renaming the fields with the seq# concatinated to the field name. I just never had the new field names from the created hold file. Thanks for helping me through this guys.


WebFocus 7.7.03 - 7703_hotfix - Gen: 284
Dev Studio 7.7.03 - Gen: 06062011
Mainframe Focus 7.7.03
Windows WF Client Server
zOS Reporting server (hub-sub config)
Windows Reporting server
Windows RC Client Server
 
Posts: 30 | Location: Portland, Oregon, USA | Registered: September 11, 2009Report 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     [SOLVED] Easier way to pull records?

Copyright © 1996-2020 Information Builders