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] Using Hold Table to Join to Synonym To Limit Data In Report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Using Hold Table to Join to Synonym To Limit Data In Report
 Login/Join
 
Member
posted
Hello,

I am trying to use a hold table (HOLDTOP10CLIENTS) which will pull the top 10 JH_LOCALCLIENTCODE by revenue.

Then I want to join that hold table to a synonym to pull the detail of only the top 10 JH_LOCALCLIENTCODE.

When I run my hold file, it pulls the 10 clients and revenue, but I am having issues with the join and pulling the rest of the detail fields.

Any suggestions would help.

Thanks!


TABLE FILE dm_global/vwjobtransactionsummary
SUM VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT
BY TOTAL HIGHEST 10 VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT NOPRINT
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.JH_LOCALCLIENTCODE
WHERE VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.FISCALYEAR EQ '2018'
ON TABLE HOLD AS HOLDTOP10CLIENTS FORMAT FOCUS INDEX JH_LOCALCLIENTCODE
END


JOIN JH_LOCALCLIENTCODE IN HOLDTOP10CLIENTS
TO UNIQUE JH_LOCALCLIENTCODE IN dm_global/vwjobtransactionsummary AS J1
END


TABLE FILE dm_global/vwjobtransactionsummary
SUM VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.AL_LINEAMOUNT
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.TEU
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.JH_LOCALCLIENTCODE
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.INVOICEYEAR
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.INVOICEMONTH
END

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1
 
Posts: 16 | Location: Voorhees, NJ | Registered: June 13, 2017Report This Post
Virtuoso
posted Hide Post
What dbms is vwjobtransactionsummary in? Is it a FOCUS file or some other database? What specific issues are you having? Are you getting an error message?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Member
posted Hide Post
I just had a co-worker figure out the issue. vwjobtransactionsummary is in a SQL DB. The issue is that the report would run, just not do a join and show only the top 10. But below is the code a co-worker sent me that worked.

Thanks for the help.


TABLE FILE dm_global/vwjobtransactionsummary
SUM
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT AS 'CL_REV'
COMPUTE CLCODE/A100=VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.JH_LOCALCLIENTCODE;
BY TOTAL HIGHEST 10 VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT NOPRINT
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.JH_LOCALCLIENTCODE
WHERE VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.FISCALYEAR EQ '2018'
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS HOLD_SUMMARY FORMAT FOCUS INDEX CLCODE
-RUN
-*? HOLD HOLD_SUMMARY
-*TABLE FILE HOLD_SUMMARY
-*PRINT *
-*END
-*-EXIT

JOIN LEFT_OUTER JH_LOCALCLIENTCODE IN dm_global/vwjobtransactionsummary
TO UNIQUE CLCODE IN HOLD_SUMMARY AS J1
END

TABLE FILE dm_global/vwjobtransactionsummary
SUM
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.REVAMOUNT
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.AL_LINEAMOUNT
VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.TEU
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.JH_LOCALCLIENTCODE
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.INVOICEYEAR
BY VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.INVOICEMONTH
WHERE VWJOBTRANSACTIONSUMMARY.VWJOBTRANSACTIONSUMMARY.FISCALYEAR EQ '2018'
WHERE CL_REV NE '';


WebFOCUS 8.1
 
Posts: 16 | Location: Voorhees, NJ | Registered: June 13, 2017Report 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] Using Hold Table to Join to Synonym To Limit Data In Report

Copyright © 1996-2020 Information Builders