330 likes | 610 Views
WebFOCUS Friday for Beginners. “Ad hoc” Querying and Reporting with WebFOCUS. Twanette Jurd 9 April 2010. My theory (or theories) …. BI Tools vs. BI Applications. Technology is not the answer …. the result of applying the technology provides the answers.
E N D
WebFOCUS Friday for Beginners “Ad hoc” Querying and Reporting with WebFOCUS Twanette Jurd 9 April 2010
BI Tools vs. BI Applications • Technology is not the answer …. • the result of applying the technology provides the answers. • Point and Click, Drag and Drop, and an intuitive and “functionality-rich” interface may be the requirement for a good BI tool …. • but a good BI application is one that provides a faster, easier way to get the information that is needed. Most users need applications, not tools
How ad hoc does ad hoc need to be? • WebFOCUS has a number of really good ad hoc “tools” which users could use to build their own queries and reports. • But is that really what users want or need? Will the broader user base use them? • Furthermore, often data is simply too complex to simplify! And therefore we would not always be able to give users out-of-the-box tools to simply build their own queries and reports.
Understand the real requirements • Perhaps the project team is envisioning a totally ad hoc environment, whereas business management is more interested in the delivery of standardized analysis? • We need to make sure the BI implementation’s deliverable matches the business demand and expectations – obviously! Self-service parameter-driven reports allow users to easily retrieve what they want in the format that they need, with limited training
Information Builders White Paper • Assumption that the average business user has the know-how or the time to use BI tools • An end-user market that is flooded with misguided hype from the vendor community, indicating that, “BI tools are for everyone” • Users don’t have the time to work with a BI tool and navigate a data warehouse to produce the information they need
Anecdote by Ralph Kimball • Ralph Kimball, an expert on data warehousing, says the following in his book, The Data Warehouse Toolkit; 2nd Edition: “The majority of the user base likely will access the data via pre-built parameter-driven analytic applications. Approximately 90 to 95 percent of the potential users will be served by these canned applications that are essentially finished templates that do not require users to construct relational queries directly.”
WebFOCUS does ad hoc …. very well !!
With Dialogue Manager you can parameterize virtually anything • WebFOCUS isn’t just a tool – it is a complete toolbox • Understand all the pieces: • APP commands, SET commands • CHECK FILE, USE • JOIN, DEFINE, TABLE, GRAPH, MATCH • MODIFY • And especially: • Dialogue Manager • Dialogue Manager • Dialogue Manager Don’t use a hammer to tighten the screw!
Dialogue Manager Amper VariablesUser Variables • &variable • Single ampersand (&) precedes variable name • In effect throughout a single procedure • &&variable • Remain in effect throughout the FOCUS session • Change with -SET &&variable • Cleared by the LET CLEAR command • In a non-persistent connection, set in edasprof, or controlled by IBIF_persistentamp setting • &variable.&index • Indexed variables • Multiple selections for the same variable name
Dialogue Manager Amper VariablesNames and Values • &variable names • Each name from 1-100 characters • Case sensitive • Variable values • Variables may be from 1 - 32K in length • Stored as alphanumeric values • Interpreted as integer or alphanumeric based on usage • SET DMPRECISION introduces decimal values
Dialogue Manager Amper Variables System Variables • &DATE MM/DD/YY • &DATEYYMD YYYY/MM/DD • &YMD YYMMDD • &DMY DDMMYY • &MDY MMDDYY • &TOD HH.MM.SS • &FOCFOCEXEC <focexecname> • &FOCREL WebFOCUS release number • …and many more, check the manual.
Dialogue Manager Amper Variables Statistical Variables • TABLE Command • &LINES, &RECORDS, &BASEIO, &FOCERRNUM • Operating System Command • &RETCODE • -READ • &IORETURN • Referencing a statistical variable implies –RUN • Needs execution to get a value
Dialogue Manager Amper Variables Supplying Values for User Variables • EX focexec variable1=value1,variable2=value2 • -DEFAULT • -SET • -READ • -HTMLFORM
DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog" PRINT COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST GP_PCT ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters
DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog" PRINT DEALER_COST BY COUNTRY BY CAR BY MODEL ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters
-DEFAULTH FP_COUNTRY = 'FOC_NONE' -SET &FP_COUNTRY_HDR = IF &FP_COUNTRY EQ 'FOC_NONE' THEN - 'All Countries' ELSE &FP_COUNTRY ; DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog for &FP_COUNTRY_HDR " PRINT DEALER_COST BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ; ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters &FP_COUNTRY = 'ENGLAND'
-DEFAULTH FP_BYFIELD = 'FOC_NONE' DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog for &FP_COUNTRY_HDR " PRINT DEALER_COST BY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ; ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters &FP_BYFIELD = 'HIGHEST DEALER_COST'
-DEFAULTH FP_PRINTFIELD = 'DEALER_COST' DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog for &FP_COUNTRY_HDR " PRINT &FP_PRINTFIELD BY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ; ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters &FP_PRINTFIELD = ‘GP_PCT'
-SET &FP_PRINTFIELD = 'DEALER_COST' ; -SET &FP_COUNTRY = 'ENGLAND' ; -SET &FP_BYFIELD = 'SEATS' ; DEFINE FILE CAR GP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ; END TABLE FILE CAR HEADING "Car Catalog for &FP_COUNTRY_HDR " PRINT &FP_PRINTFIELD BY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ; ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -INCLUDE FPS_STYLE ENDSTYLE END • Table file car …. No parameters
Architectural Considerations • Standards: • File names (fexes, masters, stylesheets etc.) • Amper variable (parameter) names • Program labels • Report / output formats • Styles and stylesheets • Program Headers / Documentation • Re-usable / generic code stored in “-INCLUDE” files • Parameter forms / screens: • Consistent layout • Logical flow • Ability to save reports variants (i.e. save parameters) • Navigation: • Consistent • Logical • Fast navigation: “favorites” and “search” functionality
Ability to search for Menu Options Manage Report Variants “Favorites” for fast navigation
Cutting Edge StratWare • Parameter-driven reporting templates sharing a standard "look-and-feel", significantly reducing the end-user learning curve for receiving information • Standardised look and feel for each report selection and display output • Enablement of meaningful analysis with detailed drill-down to any desired depth • Enhanced flexibility to consider multiple scenarios, enabled by powerful parametric functionality And with WebFOCUS …. You can do it too!