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     sample code for Adhoc report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
sample code for Adhoc report
 Login/Join
 
Member
posted
Hello Everyone,

We have a new requirement, Adhoc reports – 120-170 columns and 7-8 million records. which will perform better performance either using master file or sql pass thru?

Can you help me with sample code for below requirement.
The customer login thru web and select list of columns(in 120),either 10,20,…. and filter criteria’s Empid(>,<,<=,>=) and Sal (>,<,<=,>=) etc… and date range and submit.


Ex:Columns(Emp Table)
Empid
Empname
Dept
Sal
Address1
Address2
Phone
Country etc..


WebFOCUS 7.7.03 Windows 7, Excel,HTML,PDF
 
Posts: 11 | Registered: August 27, 2014Report This Post
Virtuoso
posted Hide Post
Look at these videos that explain how to create an Adhoc report:
Adhoc part 1
Adhoc part 2


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
Consider the points mage in this post: Need to handle 7-8 million records in excel or pdf!!.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
Technically SQL pass through and focus will will behave the same when they are sent to the database. I'm sure I'll have a lot of people telling me I'm wrong. That's because FOCUS doesn't always optimize the SQL that it passes to the database.

IBI has made a number of improvements to the adapters that have improved the SQL thats generated, but even so, when writing your FOCUS code you should have at least a basic understanding of what will translate to good SQL and what won't. For instance, the FST and LST operators do not translate to SQL and if you have alpha values in your SUM verb without putting a prefix operator on it, the SQL will not be generated properly. In this instances and group bys that you have will not be passed and FOCUS will handle it on the RS.

If you search the forum for tracing, you will find examples of how to trace your queries to identify whether your query is efficiently being translated into SQL. If you want to not worry about that and know exactly what SQL is being passed, then I would use SQL pass through.

In my environment I do not allow SQL pass through, so whenever I create metadata and queries, I try to run traces on what I wrote so that I can ensure that I have the correct SQL translated to the DB.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report 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     sample code for Adhoc report

Copyright © 1996-2020 Information Builders